How to display a custom field of shop_coupon

Support MB Elementor Integrator How to display a custom field of shop_coupon

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45543
    WillWill
    Participant

    Hi, may I know how do I display a custom field of shop_coupon? I notice it won't work as it's not a "setting" page, it's like a single blog post. Thank you.

    #45552
    PeterPeter
    Moderator

    Hello Will,

    Can you please clarify the question? Do you mean to add a custom field to the WooCommerce coupon post in the admin area? Or output the field value of a coupon post in the frontend?

    #45559
    WillWill
    Participant

    Hi, output the field value of a coupon post in the frontend. Thank you.

    #45564
    PeterPeter
    Moderator

    When you output the coupon post with code, you can use the helper function rwmb_meta() to output the field value of the coupon post. Please follow the documentation
    https://docs.metabox.io/functions/rwmb-meta/

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