PHP Class WC_Admin_Addons

显示文件 Open project: woocommerce/woocommerce Class Usage Examples

Public Methods

Method Description
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).

Method Details

get_section() public static method

Get section for the addons screen.
public static get_section ( string $section_id ) : object | boolean
$section_id string
return object | boolean

get_section_data() public static method

Get section content for the addons screen.
public static get_section_data ( string $section_id ) : array
$section_id string
return array

get_sections() public static method

Get sections for the addons screen
public static get_sections ( ) : array
return array of objects

output() public static method

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

output_banner_block() public static method

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

output_button() public static method

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() public static method

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

output_column_block() public static method

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

output_small_dark_block() public static method

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

output_small_light_block() public static method

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

output_storefront_button() public static method

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