WP 2.3 Plugin – Limit Visibility by Capability

This plugin is pretty simple (yet effective) – so i’ll try and keep things short.

You can use this plugin to limit the visibility of your WordPress 2.3 site to only logged in users that have a specific (pre-defined) WP Capability. Any of the standard WP Capabilities can be used, like: read, edit_posts, publish_posts, edit_users, manage_options, etc. Custom capabilities can also be used.

Good for multi-blog setups with unified logins (single login with shared cookies) where you want some users to be able to access one site but not another unless they have certain permissions.

This plugin is based on Angsuman’s Authenticated WordPress Plugin. All I did was combine his redirect function with some of my own logic. Now you can have slightly finer grained control over who is allowed to acces your WP site.

You can get the Limit Visibility by Capability plugin (v1.0) here.

1. Place the file: limit_by_caps.php in your /wp-content/plugins/ directory.
2. Activate the plugin.
3. Navigate to the Options >> Limit Visibility subpage to enable your settings.

By default, after you activate this plugin it will:
1. Redirect all visitors who try to access your site (who are not logged in) to the Login page. (using Angsuman’s function)
2. Redirect all logged in users without the “manage_options” capability (everyone except the Admin) to http://wordpress.org

You can also Customize the Settings: (recommended)
1. Change the minimum Capability required to access the site to something lower. (eg: using publish_posts will typically allow all Authors, Editors, and Admins in – but not Contributors or Subscribers)
2. Change the external URL that logged in (but rejected) users get sent to into one of your choosing. (so if you are protecting a subdomain you might send these users to the top-level, “main” domain)

Here’s a screencap of the Options >> Limit Visibility subpage:

Limit Visibility by Capability Seetings - screencap

Additional Notes:
- Block posts, comments, searches, feeds
- Deny access to the entire back-end of WP (no dashboard, no write post, etc)
- No access to uploaded files (no images, no pdfs, requests for exact URLs still get blocked) still working on this..
- Works well with Options >> Privacy turned “On” (block search engines and spiders)
- Compatible with Postie plugin (post via email still works)

Comments 6

  1. Arnie wrote:

    kmart apply online application
    16 player double elimination board for darts
    amana furnace troubleshooting codes
    3206 gx 150cc yerfdog features
    irving camper sales
    bitty schram nude in movie thief
    insesto mama follando su hijo
    manyakis video malibog
    68 chevelle on 24 rims
    lisaraye mccoy wedding
    hog rock cafe celebrity hard
    1 onze to grams
    pictures of short and sassy haircuts
    cowgirlssex com
    gangs and signs
    stage department store merchandise official
    jennifer nettles nude pics
    armscor air rifle cal 22 prices
    poems using metaphors for kids
    shikaino hentai

    Posted 23 Apr 2010 at 3:30 pm
  2. Merrill Kerth wrote:

    maillot Ghana 2014

    Posted 21 Dec 2016 at 7:08 pm
  3. Vincenzo Belknap wrote:

    techblog.touchbasic.com is a well-written piece. I just passed this on 12/23/2016 to a classmate who has been involved in some work of their own on the topic. To say thanks, they just bought me a drink! So, let me express my gratitude by saying: Thanks for the drink!

    Posted 23 Dec 2016 at 6:56 pm
  4. rastcale wrote:

    great post

    Posted 16 Aug 2017 at 10:21 am
  5. getsbigirl wrote:

    check here more info

    Posted 29 Aug 2017 at 9:30 am
  6. jufaopn wrote:

    click here pls

    Posted 16 Sep 2017 at 6:32 am

Post a Comment

Your email is never published nor shared. Required fields are marked *