https://github.com/rinatkhaziev/clear-post-meta
WordPress plugin to easily clear post meta for a specific post/page/custom post type
https://github.com/rinatkhaziev/clear-post-meta
wordpress wordpress-admin wordpress-plugin
Last synced: 14 days ago
JSON representation
WordPress plugin to easily clear post meta for a specific post/page/custom post type
- Host: GitHub
- URL: https://github.com/rinatkhaziev/clear-post-meta
- Owner: rinatkhaziev
- License: mit
- Created: 2018-02-01T08:36:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-01T08:39:03.000Z (over 8 years ago)
- Last Synced: 2025-01-23T22:18:22.885Z (over 1 year ago)
- Topics: wordpress, wordpress-admin, wordpress-plugin
- Language: PHP
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Clear Post Meta
Have you ever wished you could delete all post meta for the post/page/custom post type you're editing with 1 click? Well now you can!
### How to use
* Activate the plugin.
* Navigate to a post edit screen.
* You will see admin bar item (and a meta box, for good measure).
* Click `Clear Post Meta` and confirm that you really want to do it.
### Notes
By default editors and above can delete meta, to change that you can use `cpm_clear_cap` filter:
```php
add_filter( 'cpm_clear_cap', function() { return 'manage_options'; } );
```
### Requirements
This plugin requires PHP7. I repeat, _this plugin requires PHP7_.
### Changelog
* 0.1 Initial Release