Hey Bojan, thanks for the quick answer.
I managed to solve the issue in another way, by removing the CTA button, adding “Never see this message again” link, and changing the text with this function I found on some other topic (added to functions.php):
function change_translate_text( $translated_text ) {
if ( $translated_text == 'Never see this message again.' ) {
$translated_text = 'I agree with the terms';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
Then I styled the text a bit to make it look like a button. It seems to be working fine. I hope this can be useful for other people.
Btw, your plugin is great!