WordPress
Settings
AgeOnce WordPress plugin configuration
Plugin Settings
After installing the plugin, go to AgeOnce in the WordPress admin sidebar to configure.
API Credentials
Status
Enable or disable the plugin.
- Enabled — Age verification is active
- Disabled — Plugin does not intercept content or checkout
Client ID
Unique identifier of your client in AgeOnce.
- Get it from Dashboard Settings
- Create a new client if you don't have one yet
Client Secret
Secret key for API request authentication.
Never publish the Client Secret! It must remain confidential.
Redirect URI
The plugin automatically uses this callback URL (format ?ageonce_callback=1):
https://yoursite.com/?ageonce_callback=1The exact URL for your site is shown in the plugin settings — copy it and add to allowed Redirect URIs in your Dashboard Settings.
Content Rules
Content restriction is configured per post type (Pages, Posts, Products, etc.).
For each post type you can:
- Enable/disable — Turn age verification on or off for that content type
- Allow Manual Locking via Metabox — When enabled, you can protect individual pages, posts, or products. An AgeOnce Protection metabox will appear in the sidebar on the edit screen for each post/page/product. There you can enable protection separately for that specific item, regardless of its category.
- Active Age Groups — Choose which age thresholds apply: 16+, 18+, 21+
- Per-age rules — For each enabled age group (e.g. 18+ Rules), select taxonomy terms (Categories, Product Categories, etc.). Content in those terms will require verification for that age
Example
- Enable Products
- Check 18+ as active age group
- In 18+ Rules, select "Alcohol" in Product Categories
- All products in the Alcohol category will require 18+ verification
After Configuration
- Save changes
- Add the Redirect URI to Dashboard Settings
- Test by opening a restricted page or adding an age-restricted product to cart and going to checkout