Support » Plugin: Complianz | GDPR Cookie Consent » How to change text on ‘revoke cookie consent’ button?

  • Resolved caspersjack


    Is there a way to change the text on the ‘revoke cookie consent’ button? I tried to add a filter to ‘cmplz_revoke_link’ but that didn’t seem to work.

Viewing 1 replies (of 1 total)
  • Plugin Author RogierLankhorst


    The cmplz_revoke_link filter returns the entire revoke button. To change the text, you’ll need to replace the text in it. Please note that if you use a different language, you should replace the text that’s on the button on your front-end.

    function cmplz_change_revoke_text($html){
      $html = str_replace('Revoke cookie consent', 'Your own text', $html);
      return $html;

    Let me know if that helps!

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