Last active
April 20, 2024 17:18
-
-
Save lushkant/e50667a6c932ef64f301a59b8b5f449c to your computer and use it in GitHub Desktop.
RSFV plugin filter for updating allowed html and attributes array.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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