Skip to content

Instantly share code, notes, and snippets.

@lushkant
Last active April 20, 2024 17:18
Show Gist options
  • Select an option

  • Save lushkant/e50667a6c932ef64f301a59b8b5f449c to your computer and use it in GitHub Desktop.

Select an option

Save lushkant/e50667a6c932ef64f301a59b8b5f449c to your computer and use it in GitHub Desktop.
RSFV plugin filter for updating allowed html and attributes array.
<?php
add_filter(
'rsfv_allowed_html',
function ( $allowed_html ) {
$allowed_html['a']['data-aboid'] = array();
$allowed_html['a']['data-productid'] = array();
return $allowed_html;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment