Render customers filter on HPOS list table on hook `woocommerce_order_list_table_restrict_manage_orders` (#41328)

* Render `customers_filter()` on hook `woocommerce_order_list_table_restrict_manage_orders` for backwards compat

* Add changelog
This commit is contained in:
Jorge A. Torres 2023-11-09 14:48:11 +00:00 committed by GitHub
parent 65234c4590
commit daaab7acc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Render customer filter on HPOS orders on hook execution for backwards compat.

View File

@ -103,6 +103,7 @@ class ListTable extends WP_List_Table {
add_filter( 'set_screen_option_edit_' . $this->order_type . '_per_page', array( $this, 'set_items_per_page' ), 10, 3 );
add_filter( 'default_hidden_columns', array( $this, 'default_hidden_columns' ), 10, 2 );
add_action( 'admin_footer', array( $this, 'enqueue_scripts' ) );
add_action( 'woocommerce_order_list_table_restrict_manage_orders', array( $this, 'customers_filter' ) );
$this->items_per_page();
set_screen_options();
@ -673,7 +674,6 @@ class ListTable extends WP_List_Table {
ob_start();
$this->months_filter();
$this->customers_filter();
/**
* Fires before the "Filter" button on the list table for orders and other order types.