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
403       *
404       * @param string       $html  HTML content for the image.
405       * @param int          $id    Attachment ID.
406       * @param string       $alt   Image description for the alt attribute.
407       * @param string       $title Image description for the title attribute.
408       * @param string       $align Part of the class name for aligning the image.
409       * @param string|array $size  Size of image. Image size or array of width and height values (in that order).
410       *                            Default 'medium'.
411       */
412      return apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );
413 }
414
415 /**
416  * Calculates the new dimensions for a down-sampled image.
417  *
418  * If either width or height are empty, no constraint is applied on
419  * that dimension.
420  *
421  * @since 2.5.0