ims_pre_get_customer_galleries

Description

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

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

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

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

Example

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

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 *