wp_get_attachment_image

wp_get_attachment_image

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('wp_get_attachment_image') is found 1 times:

  • /wp-includes/media.php line 1163
    	 * @param bool         $icon          Whether the image should be treated as an icon.
    	 * @param string[]     $attr          Array of attribute values for the image markup, keyed by attribute name.
    	 *                                    See wp_get_attachment_image().
    	 */
    	return apply_filters( 'wp_get_attachment_image', $html, $attachment_id, $size, $icon, $attr );
    }
    
    /**
     * Gets the URL of an image attachment.
     *
     * @since 4.4.0