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
- __construct() : mixed
- add_plugin_promo_field() : mixed
- get_promo_content() : mixed
- load_styles() : mixed
- register() : void
- Register this object with WordPress.
- render_promo() : mixed
- should_add_promo() : mixed
Properties
$plugin_file
private
mixed
$plugin_file
$plugin_id
private
mixed
$plugin_id
$section_slug
private
mixed
$section_slug
Methods
__construct()
public
__construct(mixed $plugin_id, mixed $plugin_file, mixed $section_slug) : mixed
Parameters
- $plugin_id : mixed
- $plugin_file : mixed
- $section_slug : mixed
Return values
mixed —add_plugin_promo_field()
public
add_plugin_promo_field(mixed $settings[, mixed $current_section = '' ]) : mixed
Parameters
- $settings : mixed
- $current_section : mixed = ''
Return values
mixed —get_promo_content()
public
get_promo_content() : mixed
Return values
mixed —load_styles()
public
load_styles() : mixed
Return values
mixed —register()
Register this object with WordPress.
public
register() : void
Return values
void —render_promo()
public
render_promo() : mixed
Return values
mixed —should_add_promo()
public
should_add_promo() : mixed