WC_Barn2_Plugin_Promo implements Registerable
Provides functions to add the plugin promo to the plugin settings page in the WordPress admin.
Tags
Interfaces, Classes and Traits
- Registerable
- An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
Table of Contents
- $plugin_file : mixed
- $plugin_id : mixed
- $section_slug : mixed
- $settings_page : mixed
- __construct() : mixed
- add_product_section_promo() : mixed
- add_promo() : mixed
- get_promo_content() : mixed
- load_styles() : mixed
- register() : mixed
- render_promo() : mixed
Properties
$plugin_file
private
mixed
$plugin_file
$plugin_id
private
mixed
$plugin_id
$section_slug
private
mixed
$section_slug
$settings_page
private
mixed
$settings_page
Methods
__construct()
public
__construct(mixed $plugin_id, mixed $plugin_file, mixed $section_slug[, mixed $settings_page = false ]) : mixed
Parameters
- $plugin_id : mixed
- $plugin_file : mixed
- $section_slug : mixed
- $settings_page : mixed = false
Return values
mixed —add_product_section_promo()
public
add_product_section_promo(mixed $settings, mixed $current_section) : mixed
Parameters
- $settings : mixed
- $current_section : mixed
Return values
mixed —add_promo()
public
add_promo([mixed $settings = array() ]) : mixed
Parameters
- $settings : mixed = array()
Return values
mixed —get_promo_content()
public
get_promo_content() : mixed
Return values
mixed —load_styles()
public
load_styles() : mixed
Return values
mixed —register()
public
register() : mixed
Return values
mixed —render_promo()
public
render_promo() : mixed