How to Enable MonsterLinks in the Author Description

IMPORTANT: This documentation is for WordPress-powered sites only.

If you try to add a MonsterLink to the Author Description field in WordPress, you’ll find the MonsterLink does not properly trigger your optin to display.

To enable MonsterLinks in the Author Description of your WordPress site, you’ll need to add an additional filter to enable the required link attributes.

You can add the following filter to your WordPress theme’s functions.php template file to enable the required link attributes for MonsterLinks:

//* Add data-optin-slug to the allowed tags array and hook into Init
function om_monsterlinks_allowed_tags() {
	global $allowedtags;
	$allowedtags['a'] = array('style'=>array(
	    'href' => array(),
            'class' => array(),
            'data-optin-slug' => array()
	),);
}
add_action('init', 'om_monsterlinks_allowed_tags', 10);

Once you’ve added this filter, save the file and you can proceed with adding your Monsterlinks.