• Hello!

    I am trying to add a filter attachment_innerHTML in order to manage how the attachments are shown but doing this:
    <?php
    function handleAtachmentHtml($html, $id){

    $html = “ASDASDASDASDASDAD”;
    return $html;
    }
    add_filter(‘attachment_innerHTML’, array(&$this, ‘handleAtachmentHtml’));
    ?>

    I obtain no results, nothing happens… I have been googling and searching for the forum…
    I use this code in the my theme’s functions.php.
    What am I doing wrong??

  • The topic ‘attachment_innerHTML filter does not take effect’ is closed to new replies.