Description
The “ims_pricing_tabs” filter is used to add or remove pricing screen tabs like price list, package, and promotions.
A plugin (or theme) can modify the array with the code:
<?php add_filter( 'ims_pricing_tabs', 'filter_function_name' ); ?>
The hook is located in the image-store/_inc/pricing.php file.
Example
// Apply filter function add_ims_pricing_tabs( $tabs ) { //only allow administrator to view promotions if( ! current_user_can("adminstrator") ) unset( $tabs['promotions'] ); return $tabs; } add_filter('ims_pricing_tabs', 'add_ims_pricing_tabs');
Note: $tabs is an associative array.