woocommerce_orders_table_query_count_sql
Filters the count SQL query.
Использование
add_filter( 'woocommerce_orders_table_query_count_sql', 'wp_kama_woocommerce_orders_table_query_count_sql_filter' ); /** * Function for `woocommerce_orders_table_query_count_sql` filter-hook. * * @param string $sql The count SQL query. * * @return string */ function wp_kama_woocommerce_orders_table_query_count_sql_filter( $sql ){ // filter... return $sql; }
- $sql(строка)
- The count SQL query.
Список изменений
С версии 8.6.0 | Введена. |
Где вызывается хук
woocommerce_orders_table_query_count_sql
woocommerce/src/Internal/DataStores/Orders/OrdersTableQuery.php 941
$this->count_sql = apply_filters_ref_array( 'woocommerce_orders_table_query_count_sql', array( $this->count_sql, &$this, $this->args, $fields, $join, $where, $groupby ) );