Метод | Описание | |
---|---|---|
best_selling_products ( array $atts ) : string | List best selling products on sale. | |
cart ( ) : string | Cart page shortcode. | |
checkout ( mixed $atts ) : string | Checkout page shortcode. | |
featured_products ( array $atts ) : string | Output featured products. | |
init ( ) | Init shortcodes. | |
my_account ( mixed $atts ) : string | My account page shortcode. | |
order_by_rating_post_clauses ( array $args ) : array | woocommerce_order_by_rating_post_clauses function. | |
order_tracking ( mixed $atts ) : string | Order tracking page shortcode. | |
product ( array $atts ) : string | Display a single product. | |
product_add_to_cart ( array $atts ) : string | Display a single product price + cart button. | |
product_add_to_cart_url ( array $atts ) : string | Get the add to cart URL for a product. | |
product_attribute ( array $atts ) : string | List products with an attribute shortcode. | |
product_categories ( array $atts ) : string | List all (or limited) product categories. | |
product_category ( array $atts ) : string | List products in a category shortcode. | |
product_page ( array $atts ) : string | Show a single product page. | |
products ( array $atts ) : string | List multiple products shortcode. | |
recent_products ( array $atts ) : string | Recent Products shortcode. | |
related_products ( array $atts ) : string | List related products. | |
sale_products ( array $atts ) : string | List all products on sale. | |
shop_messages ( ) : string | Show messages. | |
shortcode_wrapper ( string[] $function, array $atts = [], $wrapper = ['class' => 'woocommerce', 'before' => null, 'after' => null] ) : string | Shortcode Wrapper. | |
top_rated_products ( array $atts ) : string | List top rated products on sale. |
Метод | Описание | |
---|---|---|
_maybe_add_category_args ( array $args, string $category, string $operator ) : array; | Adds a tax_query index to the query to filter by category. | |
product_loop ( array $query_args, array $atts, string $loop_name ) : string | Loop over found products. |
public static best_selling_products ( array $atts ) : string | ||
$atts | array | |
Результат | string |
public static featured_products ( array $atts ) : string | ||
$atts | array | |
Результат | string |
public static my_account ( mixed $atts ) : string | ||
$atts | mixed | |
Результат | string |
public static order_by_rating_post_clauses ( array $args ) : array | ||
$args | array | |
Результат | array |
public static order_tracking ( mixed $atts ) : string | ||
$atts | mixed | |
Результат | string |
public static product_add_to_cart ( array $atts ) : string | ||
$atts | array | |
Результат | string |
public static product_add_to_cart_url ( array $atts ) : string | ||
$atts | array | |
Результат | string |
public static product_attribute ( array $atts ) : string | ||
$atts | array | |
Результат | string |
public static product_categories ( array $atts ) : string | ||
$atts | array | |
Результат | string |
public static product_category ( array $atts ) : string | ||
$atts | array | |
Результат | string |
public static product_page ( array $atts ) : string | ||
$atts | array | |
Результат | string |
public static recent_products ( array $atts ) : string | ||
$atts | array | |
Результат | string |
public static sale_products ( array $atts ) : string | ||
$atts | array | |
Результат | string |
public static shop_messages ( ) : string | ||
Результат | string |
public static shortcode_wrapper ( string[] $function, array $atts = [], $wrapper = ['class' => 'woocommerce', 'before' => null, 'after' => null] ) : string | ||
$function | string[] | |
$atts | array | (default: array()) |
Результат | string |
public static top_rated_products ( array $atts ) : string | ||
$atts | array | |
Результат | string |