woocommerce_product_filters │ хук-фильтр │ WC 2.1.0

Filters the rendered markup for the products list table filter controls.

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

add_filter( 'woocommerce_product_filters', 'wp_kama_woocommerce_product_filters_filter' );

/**
 * Function for `woocommerce_product_filters` filter-hook.
 * 
 * @param string|false $output Buffered markup produced by the registered filter renderers, or false
 *                             when no output buffer was active.
 *
 * @return string|false
 */
function wp_kama_woocommerce_product_filters_filter( $output ){
	// filter...
	return $output;
}
$output(строка|false)
Buffered markup produced by the registered filter renderers, or false when no output buffer was active.

Список изменений

С версии 2.1.0 Введена.

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

WC_Admin_List_Table_Products::render_filters()
woocommerce_product_filters
woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php 472
echo apply_filters( 'woocommerce_product_filters', $output ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- $output is buffered admin markup and the filter returns extension-controlled markup by design.

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

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