WordPress.org

Ready to get started?Download WordPress

Forums

Hook into wp_get_attachment_image (2 posts)

  1. miradev
    Member
    Posted 3 years ago #

    Is there a way I can hook into the wp_get_attachment_image() function to wrap further HTML around the image? A quick look in wp-includes/media.php doesn't appear to allow for any filters or actions?

    Ideally there would be something like this around line 665:
    $html = apply_filters('wp_get_attachment_image', $html);
    http://core.trac.wordpress.org/browser/tags/3.0.1/wp-includes/media.php

  2. MaTiZzz
    Member
    Posted 3 years ago #

    I am trying to do exactly the same, but no success so far... And you?

Topic Closed

This topic has been closed to new replies.

About this Topic