Shortcode implements Registerable, Service

This class handles our bulk variations table shortcode.

Example usage: [bulk_variations include="10" columns/horizontal="name" rows/vertical="t-shirts", images="false", lightbox="true" disable_purchasing="false" show_stock="true"]

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Service

Table of Contents

SHORTCODE  = 'bulk_variations'
do_shortcode()  : string
Handles our product table shortcode.
register()  : mixed
setup_product_data()  : void
Prepare the shortocde parameters conditionally using the global and product settings

Constants

SHORTCODE

public mixed SHORTCODE = 'bulk_variations'

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

register()

public register() : mixed
Return values
mixed

setup_product_data()

Prepare the shortocde parameters conditionally using the global and product settings

private static setup_product_data(array<string|int, mixed> $atts) : void
Parameters
$atts : array<string|int, mixed>

The

Return values
void

Search results