Table_Shortcode implements Service, Registerable, Conditional

This class handles our product table shortcode.

Example: [product_table columns="name,description,price,buy" category="shirts" tag="on-sale"]

Tags
author

Barn2 Plugins [email protected]

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Service
Marker interface to denote a service.
Registerable
An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
Conditional
An object which is loaded conditionally.

Table of Contents

SHORTCODE  = 'product_table'
check_legacy_atts()  : mixed
do_shortcode()  : string
Handles our product table shortcode.
is_required()  : bool
Is this object required?
register()  : mixed
register_shortcode()  : mixed
can_do_shortocde()  : mixed

Constants

Methods

check_legacy_atts()

public static check_legacy_atts(mixed $args) : mixed
Parameters
$args : mixed
Tags
deprecated
2.8

Replaced by Table_Args::back_compat_args. Will be removed in a future release.

Return values
mixed

do_shortcode()

Handles our product table 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()

Is this object required?

public is_required() : bool
Return values
bool

true if required, false otherwise.

register_shortcode()

public static register_shortcode() : mixed
Return values
mixed

can_do_shortocde()

private static can_do_shortocde() : mixed
Return values
mixed

Search results