Custom product status get filtered on all product list views
-
I registred a new product status with this code :
function register_custom_post_status(){ register_post_status( 'invalid', array( 'label' => __( 'Not valid', 'xx' ), 'label_count' => _n_noop( 'not valid <span class="count">(%s)</span>', 'Not valid <span class="count">(%s)</span>'), 'public' => false, 'exclude_from_search' => true, 'show_in_admin_all_list' => true, 'show_in_admin_status_list' => true )); }
When I set a product on this status ( $product->set_status(‘invalid’); ) the product all list table filter out my product and shows it only in his separate table list. But ‘show_in_admin_all_list’ is set to true, so why happen this? I’m confused.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom product status get filtered on all product list views’ is closed to new replies.