Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: twentyfourteen_attachment_size

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
284       * @since Twenty Fourteen 1.0
285       *
286       * @param array $dimensions {
287       *     An array of height and width dimensions.
288       *
289       *     @type int $height Height of the image in pixels. Default 810.
290       *     @type int $width  Width of the image in pixels. Default 810.
291       * }
292       */
293      $attachment_size     = apply_filters( 'twentyfourteen_attachment_size', array( 810, 810 ) );
294      $next_attachment_url = wp_get_attachment_url();
295
296      /*
297       * Grab the IDs of all the image attachments in a gallery so we can get the URL
298       * of the next adjacent image in a gallery, or the first image (if we're
299       * looking at the last image in a gallery), or, in a gallery of one, just the
300       * link to that image file.
301       */
302      $attachment_ids = get_posts( array(