WordPress.org

Plugin Directory

Test out the new Plugin Directory and let us know what you think.

Page Security & Membership

Allows admins to create user membership 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: 4.2.10
Last Updated: 2 years ago
Active Installs: 9,000+

Ratings

3.9 out of 5 stars

Support

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
0,1,0
100,2,2
50,2,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,2,2
100,2,2
100,1,1