With this filter you can determine what should happen when registering the settings. This affects the WordPress function register_setting and replaces the arguments for this function that Helpful uses. You can also re-enable the HTML this way, but then take the risk for a security vulnerability.
/**
* Disable sanitization for the field with the helpful_pro (the Pro button) to allow HTML.
*
* @param array $args
* @param string $field
*
* @return array
*/
add_filter('helpful_settings_group_args', function($args, $field) {
if ('helpful_pro' === $field) {
$args = [
'sanitize_callback' => null,
];
}
return $args;
});
Was this helpful?
Vote now and show me if you like or helped the content. After that, you can also leave feedback if you have a few more words to say.