fbpx

Description

[wcj_product_meta] shortcode displays WooCommerce product meta by key.

Args


name
(required) Meta key.
Default: None

product_id
(optional) The integer ID for a 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

Examples

[wcj_product_meta before="Average rating: " name="_wc_average_rating"][wcj_product_meta before=" (" after=")" name="_wc_review_count"]
Accessible through:
  • [wcj_product_meta]
Tested on WooCommerce 9.4.1 and WordPress 6.7