WC_Barn2_Plugin_Promo implements Registerable

Provides functions to add the plugin promo to the plugin settings page in the WordPress admin.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

version
1.3.5

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

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

Search results