woocommerce_products_admin_list_table_filters хук-фильтрWC 1.0

Render any custom filters and search inputs for the list table.

Использование

add_filter( 'woocommerce_products_admin_list_table_filters', 'wp_kama_woocommerce_products_admin_list_table_filters_filter' );

/**
 * Function for `woocommerce_products_admin_list_table_filters` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_products_admin_list_table_filters_filter( $array ){

	// filter...
	return $array;
}
$array
-

Где вызывается хук

WC_Admin_List_Table_Products::render_filters()
woocommerce_products_admin_list_table_filters
woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php 302-309
$filters = apply_filters(
	'woocommerce_products_admin_list_table_filters',
	array(
		'product_category' => array( $this, 'render_products_category_filter' ),
		'product_type'     => array( $this, 'render_products_type_filter' ),
		'stock_status'     => array( $this, 'render_products_stock_status_filter' ),
	)
);

Где используется хук в WooCommerce

Использование не найдено.