Class WC_Query
WC_Query Class
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array()
|
|
public
|
|
public
|
|
public
string
|
|
public
string
|
#
exclude_protected_products( string $where )
Prevent password protected products appearing in the loops |
public
string
|
#
wpseo_metadesc( )
wpseo_metadesc function. Hooked into wpseo_ hook already, so no need for function_exist |
public
string
|
#
wpseo_metakey( )
wpseo_metakey function. Hooked into wpseo_ hook already, so no need for function_exist |
public
array
|
|
public
|
#
product_query( mixed $q )
Query the products, applying sorting/ordering etc. This applies to the main wordpress loop |
public
|
|
public
|
|
public
|
|
public
|
#
get_products_in_view( )
Get an unpaginated list all product ID's (both filtered and unfiltered). Makes use of transients. |
public
array
|
#
get_catalog_ordering_args( mixed $orderby = '', mixed $order = '' )
Returns an array of arguments for ordering products based on the selected values |
public
array
|
#
order_by_popularity_post_clauses( array $args )
WP Core doens't let us change the sort direction for invidual orderby params - http://core.trac.wordpress.org/ticket/17065 |
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
#
stock_status_meta_query( string $status = 'instock' )
Returns a meta query to handle product stock status |
public
|
|
public
array
|
|
public
|
|
public
array
|
Magic methods summary
Properties summary
public
array
|
$query_vars | |
public
array
|
$unfiltered_product_ids | |
public
array
|
$filtered_product_ids | |
public
array
|
$filtered_product_ids_for_taxonomy | |
public
array
|
$post__in | |
public
string
|
$meta_query | |
public
array
|
$layered_nav_post__in | |
public
array
|
$layered_nav_product_ids |