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
- Default:
Example
<p>Product SKU: [wcj_product_sku]</p> <p>
or if you want to show SKU to shop manager only:
[wcj_product_sku before="</p> <p>Product SKU: " after="</p> <p>" visibility="admin"]
Recommended for WooCommerce Product Info module
Accessible through:
- [wcj_product_sku]