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.7.2

apply_filters('wp_get_attachment_image_src') is found 1 times:

  • /wp-includes/media.php line 1019
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
         * @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: