PHP Класс WC_Embed

Автор: WooThemes
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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