[wcj_product_image_url]

Display WooCommerce product image URL

Description

[wcj_product_image_url] shortcode displays WooCommerce product image URL.

Args

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_image_url before="Product image URL: "]
Accessible through:
  • [wcj_product_image_url]
Tested on WooCommerce 3.5.7 and WordPress 5.1.1
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

Comments

2 Comments

  1. Michael March 29, 2019 at 4:19 pm #

    Hello.

    It seems you don’t have a shortcode for other Additional Picture Urls a product can have.

    Any solution to this?

    Thank you.

    Reply to thread

    Avatar
    • RokasJ March 30, 2019 at 12:09 pm #

      HI Michael,

      Only one product image is allowed in WooCommerce, others are gallery images. There is no such shortcode for that yet but we have added it to our todo list..

      Best regards,
      Rokas – Support Team

      Avatar