\Barn2\Plugin\WC_Product_TableTable_Shortcode

This class handles our product table shortcode.

Example usage: [product_table columns="name,description,price,add-to-cart" category="t-shirts", tag="cool"]

Summary

Methods
Properties
Constants
is_required()
register()
register_shortcode()
do_shortcode()
check_legacy_atts()
No public properties found
SHORTCODE
No protected methods found
No protected properties found
N/A
can_do_shortocde()
No private properties found
N/A

Constants

SHORTCODE

SHORTCODE ='product_table'

Methods

is_required()

is_required()

register()

register()

register_shortcode()

register_shortcode()

do_shortcode()

do_shortcode(array  $atts,string  $content = ''): string

Handles our product table shortcode.

Parameters

array $atts

The attributes passed in to the shortcode

string $content

The content passed to the shortcode (not used)

Returns

string —

The shortcode output

check_legacy_atts()

check_legacy_atts(array  $args): array

Maintain support for old shortcode attributes.

Parameters

array $args

The array of product table attributes

Returns

array —

The updated attributes with old ones replaced with their new equivalent

can_do_shortocde()

can_do_shortocde()