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