WordPress at Your Fingertips
filter is not described

woocommerce_search_products_post_statuses filter-hook . WC 3.7.0

Hook woocommerce_search_products_post_statuses.

Usage

add_filter( 'woocommerce_search_products_post_statuses', 'filter_function_name_1302' );
function filter_function_name_1302( $post_statuses ){
	// filter...

	return $post_statuses;
}
$post_statuses(array)
List of post statuses.

Changelog

Since 3.7.0 Introduced.

Where the hook is called

WC_Product_Data_Store_CPT::search_products()
woocommerce_search_products_post_statuses
woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php 1609-1612
$post_statuses = apply_filters(
	'woocommerce_search_products_post_statuses',
	current_user_can( 'edit_private_products' ) ? array( 'private', 'publish' ) : array( 'publish' )
);

Where in WP core the hook is used WooCommerce

Usage not found.