• Resolved oscardimproving

    (@oscardimproving)


    Hello!

    We are building a custom WordPress endpoint to retrieve products from our WooCommerce database, and we want to retrieve the brand logo for each product. How can we pull that URL programmatically?

    We have already tried using the shortcode with the as_link parameter set to both true and false, but we always get the same result. I’ll include the line we tried with the shortcode below. I hope someone can help.

    do_shortcode('[pwb-brand product_id="' . $product->get_id() . '" as_link="false"]');

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.