shortcodes.php
Table of Contents
Functions
- buddyc_shortcodes_data() : array<string|int, mixed>
- Retrieves the array of shortcodes data.
- buddyc_get_shortcode() : mixed
- Retrieves the shortcode by key.
- buddyc_shortcode_exists() : bool
- Checks whether a shortcode is present in the page content.
- buddyc_any_shortcode_exists() : bool
- Checks whether any plugin shortcode is present in the page content.
Functions
buddyc_shortcodes_data()
Retrieves the array of shortcodes data.
buddyc_shortcodes_data() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —An associative array of shortcode names and data.
buddyc_get_shortcode()
Retrieves the shortcode by key.
buddyc_get_shortcode(string $key) : mixed
Parameters
- $key : string
-
The shortcode key.
Tags
buddyc_shortcode_exists()
Checks whether a shortcode is present in the page content.
buddyc_shortcode_exists(string $shortcode_key) : bool
Parameters
- $shortcode_key : string
-
The shortcode key.
Tags
Return values
bool —True if the shortcode exists on the page, false if not.
buddyc_any_shortcode_exists()
Checks whether any plugin shortcode is present in the page content.
buddyc_any_shortcode_exists() : bool
Tags
Return values
bool —True if any shortcode exists on the page, false if not.