BuddyClients Docs

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
since
1.0.26
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
since
1.0.27

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
since
1.0.27
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
since
1.0.27
Return values
bool

True if any shortcode exists on the page, false if not.


        
On this page

Search results