Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_image_tag

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
402       *
403       * @param string       $html  HTML content for the image.
404       * @param int          $id    Attachment ID.
405       * @param string       $alt   Image description for the alt attribute.
406       * @param string       $title Image description for the title attribute.
407       * @param string       $align Part of the class name for aligning the image.
408       * @param string|int[] $size  Requested image size. Can be any registered image size name, or
409       *                            an array of width and height values in pixels (in that order).
410       */
411      return apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );
412 }
413
414 /**
415  * Calculates the new dimensions for a down-sampled image.
416  *
417  * If either width or height are empty, no constraint is applied on
418  * that dimension.
419  *
420  * @since 2.5.0