The GamiPress – Restrict Content plugin is a specialized add-on for the GamiPress ecosystem designed to gate content based on gamification milestones (points, ranks, and achievements) rather than traditional subscription tiers.
This is EXACTLY the same product as distributed by the developer. Sales Page
Core Technical Architecture
Unlike standard membership plugins that use “User Roles,” this plugin primarily monitors the GamiPress Log table to determine access.
-
Access Logic: Once a user meets a requirement, a “grant” is recorded in the GamiPress logs. Access is persistent unless that log entry is manually removed.
-
Integration: It hooks into the
the_contentfilter of WordPress to intercept and modify content output before it reaches the browser. -
Post Type Support: Compatible with all registered public post types (Posts, Pages, and Custom Post Types like WooCommerce products or LearnDash lessons).
Functional Specifications
The plugin allows you to define specific “Requirement Sets” for any piece of content.
| Feature | Technical Detail |
| Requirement Types | Points (Total/Balance), Rank (Reached), Achievement (Earned), or specific Achievement Types. |
| Unlock Methods |
1. Automated: Access granted upon meeting criteria. 2. Manual (Expend): User “spends” points to unlock content. |
| Restriction Levels |
Full Redirect: Sends unauthorized users to a specific URL. Content Replacement: Shows the “Read More” tag, an excerpt, or trimmed text. |
| Component Masking | Can specifically target and hide only Links or Images within a post while leaving text visible. |
| Shortcodes | [gamipress_restrict_content] for inline blocks and [gamipress_post_restrictions] to display the required “tasks” to the user. |
System Requirements & Compatibility
-
Core Dependency: Requires GamiPress Core (Free) to be installed and active.
-
WordPress Version: Generally supports WP 5.8+ (optimized for the Block Editor/Gutenberg).
-
Theme Compatibility: Theme-agnostic. It uses standard WordPress templates and hooks, meaning it works with any theme that follows WP coding standards.
-
Developer Friendly: Includes a robust set of Action Hooks and Filters for custom behavior (e.g., granting access based on third-party API events).
Key Difference: Restrict Content vs. “Show/Hide If”
It’s important to note the technical distinction between this plugin and GamiPress’s utility shortcodes:
-
Restrict Content: Once unlocked, the user keeps access even if their points drop or an achievement is revoked (unless the log is deleted).
-
Show/Hide If: Access is volatile. If a user’s points drop below the threshold, the content disappears immediately.
- Categories: WordPress Plugins
- Tags: GamiPress
