WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
294 | * @since Twenty Fourteen 1.0 |
295 | * |
296 | * @param array $dimensions { |
297 | * An array of height and width dimensions. |
298 | * |
299 | * @type int $height Height of the image in pixels. Default 810. |
300 | * @type int $width Width of the image in pixels. Default 810. |
301 | * } |
302 | */ |
303 | $attachment_size = apply_filters( 'twentyfourteen_attachment_size', array( 810, 810 ) ); |
304 | $next_attachment_url = wp_get_attachment_url(); |
305 |
|
306 | /* |
307 | * Grab the IDs of all the image attachments in a gallery so we can get the URL |
308 | * of the next adjacent image in a gallery, or the first image (if we're |
309 | * looking at the last image in a gallery), or, in a gallery of one, just the |
310 | * link to that image file. |
311 | */ |
312 | $attachment_ids = get_posts( array( |