Simple PageAccess

Opis

Simple PageAccess is probably the smallest, most powerful access control plugin you’ll ever install.

In under 100 lines of code, it gives you role-based control over who can view each page — without cluttering your dashboard or slowing down your site.

  • Adds a “Only Allow Logged In Users” checkbox to each page and post
  • Dynamically show checkboxes for each user role via clean in-editor UI
  • Restrict access with zero configuration, straight from the page editor
  • Display a centered heading message: “You are not allowed to view this page!” for unauthorized users
  • No separate settings page, no database bloat — just smart, surgical code

Perfect for membership sites, private client pages, internal portals, or any time you want fast, targeted access control.

Credits

Built by Christopher Harden — plugins.guru-is.com

Instalacija

  1. Upload the plugin files to the /wp-content/plugins/simple-pageaccess directory, or install via the WordPress Plugin Directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Edit any page. In the right-hand settings panel, check “Only Allow Logged In Users” to enable restrictions.
  4. Choose the user roles that should be allowed to view the page.

Pitanja i odgovori

Can I restrict posts or custom post types?

Pages and posts are supported. Custom post types are not currently supported.

What happens if a user isn’t allowed?

They’ll see a clean, centered message that says: “You are not allowed to view this page!”

Can I change the message or redirect users?

Not yet, but custom behavior can be added with a few lines of code.

Recenzije

Nema recenzija za ovaj dodatak.

Suradnici i Programeri

“Simple PageAccess” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.

Suradnici

Prevedite “Simple PageAccess” na svoj jezik.

Zainteresirani ste za razvoj?

Pregledajte kôd, pogledajte SVN spremišteili se pretplatite na dnevnik razvoja od RSS.

Dnevnik promjena

1.3

  • Fixed role-based access so selected WordPress roles can view restricted content correctly.
  • Administrator access is now stored reliably even though its checkbox remains locked on.
  • Existing restricted content now recognizes Administrator access without requiring a resave.
  • Saved role keys are sanitized and deduplicated.
  • Updated documentation to reflect support for both pages and posts.

1.0

  • Initial release — small code, big control.