Bulk Actions, GDPR & REST API
Adjust vote counts in bulk, erase user vote data for GDPR, and configure the REST API panel.
Three Pro tools live under WP ULike → Tools. Each requires an active license to save or run destructive actions.
REST API endpoint reference is in REST API. This page covers the admin panels and what they affect.
Bulk Actions
Tools → Bulk Actions
Adjust like and dislike counter values on posts, comments, activities, and topics — without editing the database manually.
Search modes
Search Posts — filter by:
- Post type (all public types)
- Taxonomy and term
- Title keyword
Search by Item ID — find specific items:
- Content type: post, comment, activity [BP], topic [bbPress]
- One or more IDs (comma-separated)
Edit modes
Individual Edit — table with current and new like/dislike counts per selected item.
Bulk Operations — apply one operation to all selected items:
| Operation | Behavior |
|---|---|
Add specific number | Adds N likes and/or dislikes to current counts |
Set exact number | Sets counts to exact values |
Add random numbers | Adds random likes/dislikes within a min–max range |
Important notes
- Bulk Actions update counter values — they do not create fake vote log rows for Statistics drill-down.
- After large bulk edits, run Maintenance → Sync Counter Values if counts and logs diverge.
- Use for migrations, seed data, or correcting imported totals — not for hiding real engagement.
- There is no undo — export Statistics or note current values first.
GDPR — Remove User Logs
Tools → GDPR
Delete all vote logs for selected registered WordPress users.
Workflow
- Search users by name, email, or login.
- Add users to the Selected Users list.
- Click Remove Logs and confirm.
What is deleted
- All like/dislike/unlike/undislike log rows for those user IDs
- Across all content types: posts, comments, BuddyPress activities, bbPress topics
- User vote status meta is cleared
- Counters are synced after deletion
What is NOT deleted
- The WordPress user accounts themselves
- Guest votes stored by IP or fingerprint — use Maintenance cleanup tools or contact support for anonymous data
- Schema Generator post meta or Display Automation rules
Compliance notes
- WordPress core Personal Data Erasure (Privacy tools) also handles logged-in user votes via the free plugin's privacy hooks.
- The GDPR tool is for bulk admin erasure when fulfilling data subject requests.
- Action is irreversible — document what was removed.
- Export user data from WordPress Privacy → Export Personal Data before erasing if required by your policy.
Fires maintenance-related cleanup; see Database & Meta.
REST API panel
Tools → REST API
Configure the Pro REST API (/wp-json/wp-ulike-pro/v1/). Full endpoint docs: REST API reference.
Panel options
| Option | Values | Description |
|---|---|---|
Enable REST API | on/off | Master switch for all routes |
Authentication type | login / token | WordPress Application Password vs Bearer token |
Readable routes roles | role slugs | Who can GET |
Writable routes roles | role slugs | Who can POST/PUT/DELETE |
Auto user ID | on/off | Writes use authenticated user ID instead of body user_id |
API key management
When auth type is token:
- Generate a key in the REST API panel.
- Send requests with
Authorization: Bearer YOUR_TOKEN. - Rotate keys periodically — old keys can be revoked in the panel.
Keys are stored in wp_ulike_rest_api_keys.
Backup behavior
| Setting | In settings export? |
|---|---|
REST panel options ( enable_rest_api, roles, auth type) | ✓ via extensions.wp-ulike-pro.rest_api_settings |
Bearer tokens / API keys | ✗ — regenerate after import |
See Backup and Restore.
Security defaults
- Default readable/writable roles: Administrator only
- Enable writable routes only if your integration needs to cast votes
- Never embed Bearer tokens in front-end JavaScript
- Use HTTPS for all API calls
When to use which tool
| Goal | Tool |
|---|---|
Fix counter numbers on 50 posts | Bulk Actions |
Fulfill GDPR erasure for a user | GDPR |
Mobile app reads vote logs | REST API panel + REST docs |
Delete all logs for a content type | |
Clone REST settings to staging | Settings backup export/import (regenerate keys) |
Related: Debug Info · Maintenance Tools
Related articles
Continue with these guides
Did this article help?
Pick how you feel, add a note if you want, then hit Send. It takes two seconds and helps us improve this guide.