wppaste
WordPress

apply_filters( 'twentythirteen_attachment_size', array $size )

Since
Twenty thirteen 1.0
Filters the image attachment size to use.

Compatibility

WordPress
since Twenty thirteen 1.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$sizearray
{ @type int The attachment height in pixels.
@type int The attachment width in pixels.
}
  • Theint

    attachment width in pixels.

Where this hook fires · 1

  • wp-content/themes/twentythirteen/functions.php:676twentythirteen_the_attached_image()

Source code

		 *		 * @param array $size {		 *     @type int The attachment height in pixels.		 *     @type int The attachment width in pixels.		 * }		 */		$attachment_size     = apply_filters( 'twentythirteen_attachment_size', array( 724, 724 ) );		$next_attachment_url = wp_get_attachment_url();		$post                = get_post(); 		/*		 * Grab the IDs of all the image attachments in a gallery so we can get the URL		 * of the next adjacent image in a gallery, or the first image (if we're

Changelog

Introduced in Twenty thirteen 1.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.