woocommerce_(order_type)_list_table_disable_months_filter хук-фильтрWC 8.6.0

Filters whether to remove the 'Months' drop-down from the order list table.

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

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.
По умолчанию: false

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

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

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

ListTable::months_filter()
woocommerce_(order_type)_list_table_disable_months_filter
woocommerce/src/Internal/Admin/Orders/ListTable.php 766
if ( apply_filters( 'woocommerce_' . $this->order_type . '_list_table_disable_months_filter', false ) ) {

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

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