Table_Shortcode
in package
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
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
SHORTCODE
public
mixed
SHORTCODE
= 'product_table'
Methods
check_legacy_atts()
public
static check_legacy_atts(mixed $args) : mixed
Parameters
- $args : mixed
Tags
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()
public
register() : mixed
Return values
mixed —register_shortcode()
public
static register_shortcode() : mixed
Return values
mixed —can_do_shortocde()
private
static can_do_shortocde() : mixed