The Auto Verify Posts function automatically marks posts as verified when they are submitted for selected post types. This eliminates the need for manual verification of new listings, making the submission process seamless for your users.
Overview
When users submit new posts on your Voxel-powered site, those posts typically require manual verification by an administrator before they display the “verified” badge. The Auto Verify Posts function automates this process by automatically marking posts as verified immediately upon submission.
Key Features
- Automatically verifies posts upon submission
- Works with any Voxel post type (listings, places, events, etc.)
- Selective post type configuration
- Works with both frontend submissions and admin-created posts
- Seamless integration with Voxel theme hooks
Setup Instructions
Step 1: Enable the Function
- Navigate to Voxel Toolkit > Functions in your WordPress admin
- Find Auto Verify Posts in the list of available functions
- Toggle the switch to enable the function
- Click Save Changes
Step 2: Configure Post Types
After enabling the function, you’ll see configuration options appear:
- In the Post Types section, select which post types should have automatic verification
- Check the boxes next to each post type you want to enable (e.g., “places”, “events”, “jobs”)
- Click Save Changes
Note: Only posts from the selected post types will be automatically verified. Posts from other post types will still require manual verification.
How It Works
The Auto Verify Posts function hooks into multiple points in the Voxel post creation process to ensure posts are verified regardless of how they’re created:
Verification Triggers
- Frontend Submissions: When users submit posts through the Create Post form
- Admin Creation: When posts are created in the WordPress admin
- Status Transitions: When a post status changes to “publish”
- AJAX Submissions: When posts are submitted via AJAX
Verification Process
When a post is created for an enabled post type, the function:
- Detects the post creation event
- Checks if the post type is configured for auto-verification
- Sets the verification meta data on the post
- Triggers Voxel’s verification hooks for compatibility
Use Cases
Trusted User Submissions
If you have a membership site where only vetted users can submit listings, auto-verification removes unnecessary moderation steps.
Paid Listings
For sites where users pay to list, auto-verification ensures their listing is immediately visible after payment.
Community Directories
For community-driven directories where speed of publication matters more than pre-moderation.
Troubleshooting
Posts Not Being Verified
- Ensure the function is enabled in Voxel Toolkit > Functions
- Verify that the specific post type is selected in the configuration
- Check that the post is being published (draft posts are not verified)
- Clear any caching plugins after enabling the function
Verification Badge Not Showing
- Check that your Voxel theme template displays the verification badge
- Verify the post has the
voxel:verified meta set to “1”
- Ensure the post type is configured to show verification status in Voxel settings