wp_get_attachment_image_src

wp_get_attachment_image_src

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_get_attachment_image_src') is found 1 times:

  • /wp-includes/media.php line 1019
    	 * @param string|int[] $size          Requested image size. Can be any registered image size name, or
    	 *                                    an array of width and height values in pixels (in that order).
    	 * @param bool         $icon          Whether the image should be treated as an icon.
    	 */
    	return apply_filters( 'wp_get_attachment_image_src', $image, $attachment_id, $size, $icon );
    }
    
    /**
     * Gets an HTML img element representing an image attachment.
     *
     * While `$size` will accept an array, it is better to register a size with
    

See this hook used in plugins: