Query_Hooks
in package
Handles the scoped hooks (actions and filters) which are used during the product table query.
Tags
Table of Contents
- $args : mixed
- $scoped_hooks : mixed
- __construct() : mixed
- filter_wp_posts_selected_columns() : mixed
- Removes unnecessary columns from the table query if we're not displayed description or short-description.
- price_filter_post_clauses() : mixed
- register() : mixed
- reset() : mixed
- search_by_sku_posts_clauses() : mixed
- search_by_sku_posts_search() : mixed
- append_product_sorting_table_join() : string
- Join wc_product_meta_lookup to posts if not already joined.
- array_map_prefix_column() : mixed
- is_lazy_load_search_by_sku() : mixed
- setup_hooks() : mixed
Properties
$args
private
mixed
$args
$scoped_hooks
private
mixed
$scoped_hooks
Methods
__construct()
public
__construct(Table_Args $args) : mixed
Parameters
- $args : Table_Args
Return values
mixed —filter_wp_posts_selected_columns()
Removes unnecessary columns from the table query if we're not displayed description or short-description.
public
filter_wp_posts_selected_columns(mixed $fields, mixed $query) : mixed
Parameters
- $fields : mixed
- $query : mixed
Return values
mixed —price_filter_post_clauses()
public
price_filter_post_clauses(mixed $args, mixed $wp_query) : mixed
Parameters
- $args : mixed
- $wp_query : mixed
Return values
mixed —register()
public
register() : mixed
Return values
mixed —reset()
public
reset() : mixed
Return values
mixed —search_by_sku_posts_clauses()
public
search_by_sku_posts_clauses(mixed $clauses, mixed $query) : mixed
Parameters
- $clauses : mixed
- $query : mixed
Return values
mixed —search_by_sku_posts_search()
public
search_by_sku_posts_search(mixed $search, mixed $query) : mixed
Parameters
- $search : mixed
- $query : mixed
Return values
mixed —append_product_sorting_table_join()
Join wc_product_meta_lookup to posts if not already joined.
private
append_product_sorting_table_join(string $sql) : string
Parameters
- $sql : string
-
SQL join.
Return values
string —array_map_prefix_column()
private
static array_map_prefix_column(mixed $n) : mixed
Parameters
- $n : mixed
Return values
mixed —is_lazy_load_search_by_sku()
private
is_lazy_load_search_by_sku() : mixed
Return values
mixed —setup_hooks()
private
setup_hooks() : mixed