\Barn2\Plugin\WC_Product_TableQuery_Hooks

Handles the scoped hooks (actions and filters) which are used during the product table query.

Summary

Methods
Properties
Constants
__construct()
register()
reset()
filter_wp_posts_selected_columns()
search_by_sku_posts_search()
search_by_sku_posts_clauses()
price_filter_post_clauses()
order_by_custom_field_meta_sql()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
setup_hooks()
append_product_sorting_table_join()
is_lazy_load_search_by_sku()
array_map_prefix_column()
$args
$scoped_hooks
N/A

Properties

$args

$args :

Type

$scoped_hooks

$scoped_hooks :

Type

Methods

register()

register()

reset()

reset()

filter_wp_posts_selected_columns()

filter_wp_posts_selected_columns(  $fields,  $query)

Removes unnecessary columns from the table query if we're not displayed description or short-description.

Parameters

$fields
$query

search_by_sku_posts_search()

search_by_sku_posts_search(  $search,  $query)

Parameters

$search
$query

search_by_sku_posts_clauses()

search_by_sku_posts_clauses(  $clauses,  $query)

Parameters

$clauses
$query

price_filter_post_clauses()

price_filter_post_clauses(  $args,  $wp_query)

Parameters

$args
$wp_query

order_by_custom_field_meta_sql()

order_by_custom_field_meta_sql(  $clauses,  $queries,  $type,  $primary_table,  $primary_id_column,  $query)

Parameters

$clauses
$queries
$type
$primary_table
$primary_id_column
$query

setup_hooks()

setup_hooks()

append_product_sorting_table_join()

append_product_sorting_table_join(string  $sql): string

Join wc_product_meta_lookup to posts if not already joined.

Parameters

string $sql

SQL join.

Returns

string

is_lazy_load_search_by_sku()

is_lazy_load_search_by_sku()

array_map_prefix_column()

array_map_prefix_column(  $n)

Parameters

$n