woocommerce_order_list_table_restrict_manage_orders
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
woocommerce_order_list_table_restrict_manage_orders
woocommerce/src/Internal/Admin/Orders/ListTable.php 787
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 116
add_action( 'woocommerce_order_list_table_restrict_manage_orders', array( $this, 'created_via_filter' ) );
woocommerce/src/Internal/Admin/Orders/ListTable.php 117
add_action( 'woocommerce_order_list_table_restrict_manage_orders', array( $this, 'customers_filter' ) );
woocommerce/src/Internal/Fulfillments/FulfillmentsRenderer.php 67
add_action( 'woocommerce_order_list_table_restrict_manage_orders', array( $this, 'render_fulfillment_filters' ) );