[wcj_product_sku]

Display WooCommerce product SKU

Description

[wcj_product_sku] shortcode displays WooCommerce product SKU (stock keeping unit).

Args

product_id
(optional) The integer ID for an product.

Default: The current product ID, if exists
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) Make shortcode results visible to everyone (all), or to admin only (admin).

Default: all

Example

<p>Product SKU: [wcj_product_sku]</p>

or if you want to show SKU to shop manager only:

[wcj_product_sku before="<p>Product SKU: " after="</p>" visibility="admin"]
Recommended for WooCommerce Product Info module
Accessible through:
  • [wcj_product_sku]
Tested on WooCommerce 3.0.4 and WordPress 4.7.4
Plugin can be downloaded here. If there are any locked fields in the module, you will need to get Booster Plus to unlock them.

Leave a Reply

No comments yet.