PHP 클래스 WC_Embed

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

공개 메소드들

메소드 설명
get_ratings ( ) Prints the markup for the rating stars.
init ( ) Init embed class.
is_embedded_product ( ) : boolean Check if this is an embedded product - to make sure we don't mess up regular posts.
print_embed_styles ( ) Basic styling.
product_buttons ( ) : string Create the button to go to the product page for embedded products.
remove_comments_button ( ) Remove comments button on product embeds.
the_excerpt ( string $excerpt ) : string Create the excerpt for embedded products - we want to add the buy button to it.

메소드 상세

get_ratings() 공개 정적인 메소드

Prints the markup for the rating stars.
부터: 2.4.11
public static get_ratings ( )

init() 공개 정적인 메소드

Init embed class.
부터: 2.4.11
public static init ( )

is_embedded_product() 공개 정적인 메소드

Check if this is an embedded product - to make sure we don't mess up regular posts.
부터: 2.4.11
public static is_embedded_product ( ) : boolean
리턴 boolean

print_embed_styles() 공개 정적인 메소드

Basic styling.
public static print_embed_styles ( )

product_buttons() 공개 정적인 메소드

Create the button to go to the product page for embedded products.
부터: 2.4.11
public static product_buttons ( ) : string
리턴 string

remove_comments_button() 공개 정적인 메소드

Remove comments button on product embeds.
부터: 2.6.0
public static remove_comments_button ( )

the_excerpt() 공개 정적인 메소드

Create the excerpt for embedded products - we want to add the buy button to it.
부터: 2.4.11
public static the_excerpt ( string $excerpt ) : string
$excerpt string Embed short description.
리턴 string