Shortcode implements Premium_Service, Registerable, Conditional
This class handles the doc library shortcode.
Tags
Interfaces, Classes and Traits
- Premium_Service
- Registerable
- Conditional
Table of Contents
- SHORTCODE = 'doc_library'
- do_shortcode() : string
- Handles our document library shortcode.
- is_required() : mixed
- {@inheritdoc}
- register() : mixed
- {@inheritdoc}
- can_do_shortcode() : bool
- Determin if shortcode can be output.
Constants
SHORTCODE
public
mixed
SHORTCODE
= 'doc_library'
Methods
do_shortcode()
Handles our document library shortcode.
public
static do_shortcode(array<string|int, mixed> $atts[, string $content = '' ]) : string
Parameters
- $atts : array<string|int, mixed>
-
The attributes passed in to the shortcode
- $content : string = ''
-
The content passed to the shortcode (not used)
Return values
string —The shortcode output
is_required()
{@inheritdoc}
public
is_required() : mixed
Return values
mixed —register()
{@inheritdoc}
public
register() : mixed
Return values
mixed —can_do_shortcode()
Determin if shortcode can be output.
private
static can_do_shortcode() : bool