xclusive_attachment_size

Description

The “xclusive_attachment_size” filter allows to modify the default image size. Version 1.1.0+.

A plugin (or theme) can add a filter with the code:

<?php add_filter( 'xclusive_attachment_size', 'filter_function_name' ); ?>

The hook is located in the _inc/functions.php file.

Example

// apply filter
function filter_xclusive_attachment_size( $size ) {
	return array( 105, 105 );
}
add_filter('xclusive_attachment_size', 'filter_xclusive_attachment_size' );

Note: $size is an array.


Leave a Reply

Your email address will not be published. Required fields are marked *