Description
The “ims_pre_get_sales” filter is used to modify arguments pass to the WP_Query object before the sales are obtained.
A plugin (or theme) can modify the array with the code:
<?php add_filter( 'ims_pre_get_sales', 'filter_function_name' ); ?>
The hook is located in the image-store/admin/sales/sales.php file.
Example
// Apply filter function modify_ims_pre_get_sales( $args ) { $args['paged'] = 30; // display 30 images per page return $args; } add_filter('ims_pre_get_sales', 'modify_ims_pre_get_sales');
Note: $args is an array that must match values used by the WP_Query object.