woocommerce_order_list_table_restrict_manage_orders хук-событиеWC 7.3.0

Fires before the "Filter" button on the list table for orders and other order types.

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

add_action( 'woocommerce_order_list_table_restrict_manage_orders', 'wp_kama_woocommerce_order_list_table_restrict_manage_orders_action', 10, 2 );

/**
 * Function for `woocommerce_order_list_table_restrict_manage_orders` action-hook.
 * 
 * @param string $order_type The order type.
 * @param string $which      The location of the extra table nav: 'top' or 'bottom'.
 *
 * @return void
 */
function wp_kama_woocommerce_order_list_table_restrict_manage_orders_action( $order_type, $which ){

	// action...
}
$order_type(строка)
The order type.
$which(строка)
The location of the extra table nav: 'top' or 'bottom'.

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

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

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

ListTable::extra_tablenav()
woocommerce_order_list_table_restrict_manage_orders
woocommerce/src/Internal/Admin/Orders/ListTable.php 601
do_action( 'woocommerce_order_list_table_restrict_manage_orders', $this->order_type, $which );

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

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