woocommerce_(order_type)_list_table_disable_months_filter
Filters whether to remove the 'Months' drop-down from the order list table.
Usage
add_filter( 'woocommerce_(order_type)_list_table_disable_months_filter', 'wp_kama_woocommerce_order_type_list_table_disable_months_filter' );
/**
* Function for `woocommerce_(order_type)_list_table_disable_months_filter` filter-hook.
*
* @param bool $disable Whether to disable the drop-down.
*
* @return bool
*/
function wp_kama_woocommerce_order_type_list_table_disable_months_filter( $disable ){
// filter...
return $disable;
}
- $disable(true|false)
- Whether to disable the drop-down.
Default: false
Changelog
| Since 8.6.0 | Introduced. |
Where the hook is called
woocommerce_(order_type)_list_table_disable_months_filter
woocommerce/src/Internal/Admin/Orders/ListTable.php 830
if ( apply_filters( 'woocommerce_' . $this->order_type . '_list_table_disable_months_filter', false ) ) {