wp_get_attachment_image_context

wp_get_attachment_image_context

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_get_attachment_image_context') is found 1 times:

  • /wp-includes/media.php line 1088
    		 * @since 6.3.0
    		 *
    		 * @param string $context The context. Default 'wp_get_attachment_image'.
    		 */
    		$context = apply_filters( 'wp_get_attachment_image_context', 'wp_get_attachment_image' );
    		$attr    = wp_parse_args( $attr, $default_attr );
    
    		$loading_attr              = $attr;
    		$loading_attr['width']     = $width;
    		$loading_attr['height']    = $height;
    		$loading_optimization_attr = wp_get_loading_optimization_attributes(