AnsPress_Uploader::image_sizes_advanced( array $sizes )

Description #

Callback for hook intermediate_image_sizes_advanced.

Parameters #

  • $sizes
    array (Required) Image sizes.

Source #

File: includes/upload.php

	public static function image_sizes_advanced( $sizes ) {
		global $ap_thumbnail_only;

		if ( true === $ap_thumbnail_only ) {
			return array(
				'thumbnail' => array(
					'width'  => 150,
					'height' => 150,
					'crop'   => true,
				),
			);
		}

		return $sizes;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment