Last active
August 29, 2015 14:26
-
-
Save ericakfranz/18259021b5648e9bb1fa to your computer and use it in GitHub Desktop.
Allow more permissive filtering of Author Description field.
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 //* <--- Do not include this opening tag or site may implode | |
// Add to the allowed tags array and hook into Init | |
function om_monsterlinks_allowed_tags() { | |
global $allowedtags; | |
$allowedtags['a'] = array('style'=>array( | |
'data-optin-slug' => true, | |
),); | |
} | |
add_action('init', 'om_monsterlinks_allowed_tags', 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment