Description
[wcj_product_meta]
shortcode displays WooCommerce product meta by key.
Args
Please check shortcodes common 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]