Shortcodes Common Attributes

In addition to shortcode specific attributes, Booster’s shortcode share some optional common attributes.

All Shortcodes

before
(optional) Text to place before the content. If content is empty this argument is ignored.

Default: None
after
(optional) Text to place after the content. If content is empty this argument is ignored.

Default: None
visibility
(optional) User visibility. Possible values are WordPress user roles (including custom), e.g. administrator, shop_manager, customer, guest etc.

Default: all
location
(optional) Make shortcode results visible only to customers from specific country (by user IP). Value is two letter country code.

Default: all
site_visibility
(optional) Restrict shortcode output to some pages only. Possible values: single, page, archive.

Default: None
wpml_language
(optional) Restrict shortcode output to certain WPML language only. Possible values are two letter language codes. Can be comma separated list.

Default: None
not_wpml_language
(optional) Restrict shortcode output to exclude certain WPML languages. Possible values are two letter language codes. Can be comma separated list.

Default: None

Products Shortcodes

product_id
(optional) The integer ID for a product.

Default: The current product ID, if exists

Orders Shortcodes

order_id
(optional) The integer ID for an order.

Default: The current order ID, if exists
billing_country
(optional) Make shortcode results visible only in orders with specific billing country. Value is two letter country code. Can be comma separated list.

Default: None
not_billing_country
(optional) Make shortcode results visible only in orders excluding specific billing country. Value is two letter country code. Can be comma separated list.

Default: None
payment_method
(optional) Make shortcode results visible only in orders with specific payment method (gateway).

Default: None
not_payment_method
(optional) Make shortcode results visible only in orders excluding specific payment method (gateway).

Default: None