How do I change which users have access to Link Whisper?

  1. Home
  2. Knowledge Base
  3. Technical Guides
  4. How do I change which users have access to Link Whisper?

How do I change which users have access to Link Whisper?

By default, most of Link Whisper’s functionality is restricted to users that have the “manage categories” capability. Since Editors are the lowest user role that can edit categories, this restricts Link Whisper to Editors and above.

To make Link Whisper available to users with different capabilities, we have created a filter so you can set the minimum capability requirement.

If for example, your authors have the “edit posts” capability, this piece of code will make Link Whisper available to them.

/* Adjusts the Link Whisper permissions check so users with the "edit posts" capability are able to use the plugin */
add_filter('wpil_filter_main_permission_check', 'link_whisper_adjust_main_permission', 10, 1);
function link_whisper_adjust_main_permission($capability = ''){
    $capability = 'edit_posts';
    return $capability;

To install it, you’ll need to either use a code snippet plugin , or if you’re using a child theme paste it into the child theme’s functions.php file.

(For a list of the different WordPress capabilities, and how they relate to default roles, please check out this article)

Build A Powerful Internal Link Strategy Today

Enter your email & we'll send you 8 tips to build an internal link strategy.

And 3 things you should avoid doing with internal links.

    We won't send you spam. Unsubscribe at any time.

    Was this article helpful?

    Related Articles

    Need Support?

    Can't find the answer you're looking for?
    Contact Support

    Get Started with LinkWhisper

    Speed Up the Process of Internal Linking and Help You Rank Better in Google

    Get LinkWhisper Now