• Resolved qfurs

    (@qfurs)


    Hello.
    Using the plugin, I create a checkbox where to insert a link in the form of HTML into the label.

    The checkbox is required. Therefore, if you do not confirm it, then a message appears that says that you need to check the check box. The link was displayed as text in the message. So I used hooks:

    add_filter( 'woocommerce_add_error', 'custom_wc_order_notice' );
    add_filter( 'woocommerce_add_notice', 'custom_wc_order_notice' );
    
    function custom_wc_order_notice( $message ) {
        return htmlspecialchars_decode( $message );
    }

    But there is another problem on the order editing page in the admin panel:

    I was looking for filters that display that information, but this trick did not work. Perhaps you can tell me how to make the html tags display normally, or completely remove them.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Dina S.

    (@themehighsupport)

    Hi,

    Could you please verify after disabling the checkbox “Display in Order Detail Pages” inside the Basic Info tab of the field.

    Thank you!

    Thread Starter qfurs

    (@qfurs)

    Thanks for the advice. Yes, if disabling the checkbox “Display in Order Detail Pages” inside the Basic Info tab of the field, then my field is not displayed. I already did that. In my case it can be done like this.

    But, what if there is still a need to display a field in the Order Detail Pages that contains links, is there a way to do this correctly?

    Plugin Support Dina S.

    (@themehighsupport)

    Hi,

    This issue needs to be checked in detail. Can you please raise a ticket through our website? We hope our technical team will be able to help you.

    Thank you!

    Plugin Support Dina S.

    (@themehighsupport)

    Since we haven’t heard back from you, we believe that your issue is resolved.

    We are going to mark this thread as resolved.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTML link in label’ is closed to new replies.