Pro
Main Pro class for premium features.
Namespace: WebberZone\Knowledge_Base\Pro
Since: 3.0.0
Source: includes/class-pro.php line 21
Methods
__construct()
Constructor.
Line: 110
public function __construct( );
hooks()
Register hooks.
Since: 3.0.0
Line: 191
public function hooks( );
register_widgets() static
Register Pro widgets.
Since: 3.0.0
Line: 203
static public function register_widgets( );
register_pro_styles() static
Register Pro styles in the settings dropdown.
Since: 3.0.0
Line: 216
static public function register_pro_styles( $styles ): array;
| Type | Name | Description |
|---|---|---|
array | $styles | Existing styles array. |
Returns: array — Modified styles array.
get_pro_style_url() static
Get Pro style URL if the style is a Pro style.
Since: 3.0.0
Line: 240
static public function get_pro_style_url( $style_url, $style_name, $filename ): string;
| Type | Name | Description |
|---|---|---|
string | $style_url | The default style URL. |
string | $style_name | The style name. |
string | $filename | The filename with suffixes. |
Returns: string — Modified style URL.
update_settings_description()
Update Settings description.
Since: 3.0.0
Line: 261
public function update_settings_description( $html, $args ): string;
| Type | Name | Description |
|---|---|---|
string | $html | HTML output. |
array | $args | Arguments array. |
Returns: string — Updated HTML output.
uninstall_pro() static
Uninstall Pro features.
Called when the plugin is uninstalled via Freemius.
Since: 3.0.0
Line: 284
static public function uninstall_pro( );