Shortcodes
in package
Registers plugin shortcodes.
Defines and registers all shortcodes for the plugin.
Tags
Table of Contents
Methods
- any_shortcode_exists() : mixed
- Checks whether any plugin shortcode is present in the page content.
- get_all_shortcodes() : mixed
- Retrieves all shortcodes.
- get_shortcode() : mixed
- Retrieves the shortcode by key.
- register() : mixed
- Registers all shortcodes.
- run() : mixed
- Initializes the shortcode registration.
- shortcode_exists() : mixed
- Checks whether a shortcode is present in the page content.
- shortcodes_data() : mixed
- Defines shortcodes data.
Methods
any_shortcode_exists()
Checks whether any plugin shortcode is present in the page content.
public
static any_shortcode_exists() : mixed
Tags
get_all_shortcodes()
Retrieves all shortcodes.
public
static get_all_shortcodes() : mixed
Tags
get_shortcode()
Retrieves the shortcode by key.
public
static get_shortcode(string $key) : mixed
Parameters
- $key : string
-
The shortcode key.
Tags
register()
Registers all shortcodes.
public
static register() : mixed
Tags
run()
Initializes the shortcode registration.
public
static run() : mixed
Tags
shortcode_exists()
Checks whether a shortcode is present in the page content.
public
static shortcode_exists(string $shortcode_key) : mixed
Parameters
- $shortcode_key : string
-
The shortcode key.
Tags
shortcodes_data()
Defines shortcodes data.
public
static shortcodes_data() : mixed