woocommerce_order_list_table_restrict_manage_orders action-hookWC 7.3.0

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

Usage

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(string)
The order type.
$which(string)
The location of the extra table nav: 'top' or 'bottom'.

Changelog

Since 7.3.0 Introduced.

Where the hook is called

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

Where the hook is used in WooCommerce

woocommerce/src/Internal/Admin/Orders/ListTable.php 106
add_action( 'woocommerce_order_list_table_restrict_manage_orders', array( $this, 'customers_filter' ) );