PHP 클래스 WC_Shortcodes

저자: WooThemes
파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

best_selling_products() 공개 정적인 메소드

List best selling products on sale.
public static best_selling_products ( array $atts ) : string
$atts array
리턴 string

cart() 공개 정적인 메소드

Cart page shortcode.
public static cart ( ) : string
리턴 string

checkout() 공개 정적인 메소드

Checkout page shortcode.
public static checkout ( mixed $atts ) : string
$atts mixed
리턴 string

init() 공개 정적인 메소드

Init shortcodes.
public static init ( )

my_account() 공개 정적인 메소드

My account page shortcode.
public static my_account ( mixed $atts ) : string
$atts mixed
리턴 string

order_by_rating_post_clauses() 공개 정적인 메소드

woocommerce_order_by_rating_post_clauses function.
public static order_by_rating_post_clauses ( array $args ) : array
$args array
리턴 array

order_tracking() 공개 정적인 메소드

Order tracking page shortcode.
public static order_tracking ( mixed $atts ) : string
$atts mixed
리턴 string

product() 공개 정적인 메소드

Display a single product.
public static product ( array $atts ) : string
$atts array
리턴 string

product_add_to_cart() 공개 정적인 메소드

Display a single product price + cart button.
public static product_add_to_cart ( array $atts ) : string
$atts array
리턴 string

product_add_to_cart_url() 공개 정적인 메소드

Get the add to cart URL for a product.
public static product_add_to_cart_url ( array $atts ) : string
$atts array
리턴 string

product_attribute() 공개 정적인 메소드

Example [product_attribute attribute='color' filter='black'].
public static product_attribute ( array $atts ) : string
$atts array
리턴 string

product_categories() 공개 정적인 메소드

List all (or limited) product categories.
public static product_categories ( array $atts ) : string
$atts array
리턴 string

product_category() 공개 정적인 메소드

List products in a category shortcode.
public static product_category ( array $atts ) : string
$atts array
리턴 string

product_page() 공개 정적인 메소드

Show a single product page.
public static product_page ( array $atts ) : string
$atts array
리턴 string

products() 공개 정적인 메소드

List multiple products shortcode.
public static products ( array $atts ) : string
$atts array
리턴 string

recent_products() 공개 정적인 메소드

Recent Products shortcode.
public static recent_products ( array $atts ) : string
$atts array
리턴 string

sale_products() 공개 정적인 메소드

List all products on sale.
public static sale_products ( array $atts ) : string
$atts array
리턴 string

shop_messages() 공개 정적인 메소드

Show messages.
public static shop_messages ( ) : string
리턴 string

shortcode_wrapper() 공개 정적인 메소드

Shortcode Wrapper.
public static shortcode_wrapper ( string[] $function, array $atts = [], $wrapper = ['class' => 'woocommerce', 'before' => null, 'after' => null] ) : string
$function string[]
$atts array (default: array())
리턴 string

top_rated_products() 공개 정적인 메소드

List top rated products on sale.
public static top_rated_products ( array $atts ) : string
$atts array
리턴 string