WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Page Security by Contexture

Allows admins to create user groups and set access restrictions for any post, page or section.

Theme Functions

As of 1.4.x, Page Security is organized in a way that roughly corresponds to MVC guidelines. If you are a developer and want to take to extend any of PSC's features, it's usually as easily as calling any of the included static classes.

Most database-interaction functions can be found in /wp-content/plugins/contexture-page-security/core/queries.php - these are the same ones used by every facet of PSC and should be conveniently exposed to any other plugins or themes.

Here are just a few examples:

Add a User to a Group

$result = CTXPS_Queries::add_membership_with_expiration($user_id,$group_id);

Add a User with Expiration

$result = CTXPS_Queries::add_membership_with_expiration($user_id,$group_id,$expiration_date);

Change Membership Expiration

$grel_id = get_grel($user_id,$group_id); $result = update_enrollment_grel($grel_id,$expiration_date);

Get a List of Groups

$result = CTXPS_Queries::get_groups();

Get Protection Status of Current Page/Post

$result = CTXPS_Queries::check_protection();

Requires: 3.3 or higher
Compatible up to: 3.9.1
Last Updated: 2014-5-9
Downloads: 57,591

Ratings

4 stars
4.5 out of 5 stars

Support

0 of 5 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,2,2 100,1,1 100,1,1
100,2,2 100,1,1 100,1,1 100,1,1 0,1,0 100,1,1 100,1,1 100,1,1 100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,2,2 67,3,2 100,1,1 100,2,2 100,4,4 100,1,1 100,1,1 100,1,1 100,4,4 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,3,3 100,1,1 100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,2,2 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
50,2,1 100,2,2 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,2,2 100,1,1 100,2,2 100,1,1 100,2,2 100,1,1 100,1,1
0,1,0 100,1,1 100,1,1
100,1,1 100,1,1 100,2,2 0,1,0
100,2,2
100,1,1
100,2,2 100,1,1 100,1,1 100,1,1
0,1,0 100,1,1 100,5,5 100,1,1 100,1,1
100,1,1 100,2,2
50,2,1 100,1,1 100,1,1 100,1,1
100,1,1
67,3,2
100,2,2
100,2,2
100,3,3
100,1,1 100,1,1
100,1,1 100,2,2
100,1,1
100,1,1