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 support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

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

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)

Tags
Return values
string

The shortcode output

is_required()

public is_required() : mixed
Tags
Return values
mixed

register_shortcode()

public static register_shortcode() : mixed
Tags
Return values
mixed

can_do_shortocde()

private static can_do_shortocde() : mixed
Tags
Return values
mixed

Search results