Set Edit Post meta boxes inactive
There’s a default_hidden_meta_boxes filter which allows you to do that. It gets called like so: $hidden = apply_filters(‘default_hidden_meta_boxes’, $hidden, $screen);
There’s a default_hidden_meta_boxes filter which allows you to do that. It gets called like so: $hidden = apply_filters(‘default_hidden_meta_boxes’, $hidden, $screen);
Read the codex page on creating options pages, and let us know if you run into any specific issues. It has a complete copy/paste example you can monkey with. If you’re trying to avoid learning WordPress’ options mechanisms in favor of a more generic custom php solution, I understand where you’re coming from, but recommend … Read more
Verify that wp_footer() is being called in all template files, and that the Admin Bar javascript and CSS are being properly hooked into the document head.
There’s not a constant or anything there, but you can install the WP Beta Tester plugin to switch your update stream to the latest nightlies. Once you install this plugin, you can automatically update to the latest “bleeding edge” release from the standard update panel. Just remember, it’s not advised to update production sites to … Read more
If you’re copying your content by means of a WordPress import/export, you’ll need to install WordPress on your new host as a fresh install, and put your new DB details in your wp-config.php.
wp_enqueue_scripts is only fired on the front end, and not on admin screens. For loading scripts admin side, you’ll want the hook admin_enqueue_scripts. Passed as an optional argument is the page hook. (Examples include edit.php, for the admin edit page (which lists pages/posts/ cpt posts), post.php when editing a post/ custom post type and post-new.php … Read more
You should build a theme settings page for all the “global” settings like social media url:s, phone number etc.. It could be something like this: Here is a guide how to make a Settings page: How to build a theme options page. Or you can make a settings page with the new Customizer that comes … Read more
Giving the capability to delete and edit users would compromise your security, as then the editors would have the ability to modify your profile too. What you could do is just give the create_users capability to the editors. But the users thus created would be allotted “Subscribers” role by deafult. EDIT: Try the following code … Read more
Summary of Roles: Super Admin – Someone with access to the blog network administration features controlling the entire network (See Create a Network). Administrator – Somebody who has access to all the administration features Editor – Somebody who can publish and manage posts and pages as well as manage other users’ posts, etc. Author – … Read more
“MySQL server has gone away for…” This should never happen as result of admin operation on vanilla wordpress. One post publishing should not include enough DB writes to make the DB go away. Have you tried with all plugins inactive? Hey, is there a way I can host all the WP-admin functions locally, and simply … Read more