How to Enable MonsterLinks in the Author Description

Are you looking to add a MonsterLink to the Author Description of your WordPress site?

In this article, you’ll learn how to add a Monsterlink to the Author Description in WordPress.

Before You Start

Here are some things to know before you begin:

Add MonsterLink

If you try to add a MonsterLink to the Author Description field in WordPress, you’ll find the MonsterLink does not properly trigger your campaign 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.

Warning: It is dangerous to directly edit any files from the WordPress admin of your site. Doing so could break your site and interfere with your access to the administrative area. While we do not provide support for these options,
we recommend the Code Snippets plugin or to add the code via FTP to your site’s functions.php file.

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 Monsterlink to the Author Description when editing a User on your site.