Beispiel #1
0
function hocwp_query_best_selling_product($args = array())
{
    $args['meta_key'] = 'total_sales';
    $args['orderby'] = 'meta_value_num';
    $args['order'] = 'DESC';
    return hocwp_query_product($args);
}
Beispiel #2
0
function hocwp_query_product_by_category($term, $args = array())
{
    hocwp_query_sanitize_post_by_category($term, $args);
    return hocwp_query_product($args);
}