19Sep/180
Prevent change of positions of admin meta boxes
For some clients I prefer to really lock down the WordPress admin. They get confused if they accidently move one of the many meta boxes in the backend and then they'll call and tell me that the system wouldn't work anymore. So I was gald to find this little snippet which will prevent that any change of the meta boxes will be saved:
/* Prevent Save of backend Meta Box positions */ add_action('check_ajax_referer', 'prevent_meta_box_order'); function prevent_meta_box_order($action) { if ('meta-box-order' == $action ) { die('-1'); } }
Just put this in your functions.php and you're set!
Enjoy this article?
Tagged as: admin, backend, clean up, functions.php, meta boxes, simplify
Leave a comment
Recent Posts
- Prevent change of positions of admin meta boxes 19. September 2018
- Load a custom CSS file in WordPress admin 1. August 2018
- Allow registration of new WordPress users without email address 8. May 2018
- Strip shortcodes but keep the content within 27. July 2017
- Fix access problems after domain / site url change 26. March 2017
Categories
Tags
- access problems
- admin
- backend
- canonical
- clean up
- css
- domain change
- excerpt
- fix wordpress
- ftp
- functions.php
- head
- meta
- meta boxes
- move site
- no plugins needed
- permissions
- plugins
- redirects
- regex
- registration
- search
- search engines
- security
- seo
- simplify
- strip_shortcodes
- updates
- usability
- users
- wp-config.php
- www
Leave a comment
You must be logged in to post a comment.