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
Interfaces, Classes and Traits
- Service
- Registerable
- Conditional
Table of Contents
- SHORTCODE = 'product_table'
- do_shortcode() : string
- Handles our product table shortcode.
- is_required() : mixed
- register() : mixed
- register_shortcode() : mixed
- can_do_shortocde() : mixed
Constants
SHORTCODE
public
mixed
SHORTCODE
= 'product_table'
Methods
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()
public
is_required() : mixed
Return values
mixed —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