PHP Класс WC_Admin_Addons

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

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

Метод Описание
get_featured ( ) : array Get featured for the addons screen
get_section ( string $section_id ) : object | boolean Get section for the addons screen.
get_section_data ( string $section_id ) : array Get section content for the addons screen.
get_sections ( ) : array Get sections for the addons screen
output ( ) Handles output of the addons page in admin.
output_banner_block ( object $block ) Handles the outputting of a banner block.
output_button ( string $url, string $text, string $theme, string $plugin = '' ) Outputs a button.
output_column ( object $block ) Handles the outputting of a column.
output_column_block ( object $block ) Handles the outputting of a column block.
output_featured_sections ( array $sections ) Handles the outputting of featured sections
output_small_dark_block ( object $block ) Handles the outputting of a small dark block.
output_small_light_block ( object $block ) Handles the outputting of a small light block.
output_storefront_button ( ) Handles the outputting of a contextually aware Storefront link (points to child themes if Storefront is already active).

Описание методов

get_section() публичный статический Метод

Get section for the addons screen.
public static get_section ( string $section_id ) : object | boolean
$section_id string
Результат object | boolean

get_section_data() публичный статический Метод

Get section content for the addons screen.
public static get_section_data ( string $section_id ) : array
$section_id string
Результат array

get_sections() публичный статический Метод

Get sections for the addons screen
public static get_sections ( ) : array
Результат array of objects

output() публичный статический Метод

Handles output of the addons page in admin.
public static output ( )

output_banner_block() публичный статический Метод

Handles the outputting of a banner block.
public static output_banner_block ( object $block )
$block object

output_button() публичный статический Метод

Outputs a button.
public static output_button ( string $url, string $text, string $theme, string $plugin = '' )
$url string
$text string
$theme string
$plugin string

output_column() публичный статический Метод

Handles the outputting of a column.
public static output_column ( object $block )
$block object

output_column_block() публичный статический Метод

Handles the outputting of a column block.
public static output_column_block ( object $block )
$block object

output_small_dark_block() публичный статический Метод

Handles the outputting of a small dark block.
public static output_small_dark_block ( object $block )
$block object

output_small_light_block() публичный статический Метод

Handles the outputting of a small light block.
public static output_small_light_block ( object $block )
$block object

output_storefront_button() публичный статический Метод

Handles the outputting of a contextually aware Storefront link (points to child themes if Storefront is already active).
public static output_storefront_button ( )