ims_pre_get_customer_images

Description

The “ims_pre_get_customer_images” filter is used to modify arguments pass to the WP_Query object before the customer images are obtained.

A plugin (or theme) can modify the array with the code:

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

The hook is located in the image-store/admin/customers/customers_images.php file.

Example

// Apply filter
function modify_ims_get_customer_galleries( $args ) {
	$args['paged'] = 30; // display 30 images per page
	return $args;
}
add_filter('ims_pre_get_customer_images', 'modify_ims_get_customer_images');

Note:  $args is an array that must match values used by the WP_Query object.


Leave a Reply

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