LinkShortcode
in package
Uses
UtilsProvider
Shortcode for:
- Link/Button to edit consent
- Link/Button to view history of consent
- Link/Button to revoke consent
There is also a UI shortcode builder: linkForm.tsx
Table of Contents
Constants
- ALLOWED_TAGS = [self::DEFAULT_TAG, 'button']
- ALLOWED_TYPES = ['history', 'revoke', 'change']
- BUTTON_CLICKED_IDENTIFIER = 'shortcode_revoke'
- DEFAULT_TAG = 'a'
- TAG = 'rcb-consent'
Methods
- getPluginConstantPrefix() : string
- Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
- render() : string
- Render shortcode HTML and enqueue scripts and styles.
Constants
ALLOWED_TAGS
public
mixed
ALLOWED_TAGS
= [self::DEFAULT_TAG, 'button']
ALLOWED_TYPES
public
mixed
ALLOWED_TYPES
= ['history', 'revoke', 'change']
BUTTON_CLICKED_IDENTIFIER
public
mixed
BUTTON_CLICKED_IDENTIFIER
= 'shortcode_revoke'
DEFAULT_TAG
public
mixed
DEFAULT_TAG
= 'a'
TAG
public
mixed
TAG
= 'rcb-consent'
Methods
getPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
public
getPluginConstantPrefix() : string
Tags
Return values
stringrender()
Render shortcode HTML and enqueue scripts and styles.
public
static render(mixed $atts) : string
Parameters
- $atts : mixed