Description
The “ims_payment_status” filter is used to add or remove payment status like pending, closed, shipped, and cancelled.
A plugin (or theme) can modify the array with the code:
<?php add_filter( 'ims_payment_status', 'filter_function_name' ); ?>
The hook is located in the image-store/admin/sales/sales.php file.
Example
// Apply filter function add_ims_payment_status( $status ) { $status['exchanged'] = __( 'Exchanged' ); return $status; } add_filter('ims_payment_status', 'add_ims_payment_status');
Note: $status is an associative array.