Shortcode implements Service, Registerable, Conditional

This class handles the doc library shortcode.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

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'
Tags

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)

Tags
Return values
string

The shortcode output

is_required()

{@inheritdoc}

public is_required() : mixed
Tags
Return values
mixed

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

can_do_shortcode()

Determin if shortcode can be output.

private static can_do_shortcode() : bool
Tags
Return values
bool

Search results