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
388       *
389       * @param string       $html  HTML content for the image.
390       * @param int          $id    Attachment ID.
391       * @param string       $alt   Alternate text.
392       * @param string       $title Attachment title.
393       * @param string       $align Part of the class name for aligning the image.
394       * @param string|array $size  Size of image. Image size or array of width and height values (in that order).
395       *                            Default 'medium'.
396       */
397      return apply_filters( 'get_image_tag', $html, $id, $alt, $title, $align, $size );
398 }
399
400 /**
401  * Calculates the new dimensions for a down-sampled image.
402  *
403  * If either width or height are empty, no constraint is applied on
404  * that dimension.
405  *
406  * @since 2.5.0