Disable text tab on WordPress text-editor

For disabling the text tab for all users except administrators, you can add the following: function my_editor_settings($settings) { if ( ! current_user_can(‘administrator’) ) { $settings[‘quicktags’] = false; return $settings; } else { $settings[‘quicktags’] = true; return $settings; } } add_filter(‘wp_editor_settings’, ‘my_editor_settings’);

Completely disable editor

Why not use custom post types and don’t add any support for the editor, that is afterall what they are for and the easiest way . The answer in this post covers how to do that, Hide content box with Custom Post Type? http://codex.wordpress.org/Function_Reference/register_post_type To remove that functionality for pages or posts (and custom types) … Read more

Allow editors access to added plugins

Please add the following code. function activate_plugin_name() { $role = get_role( ‘editor’ ); $role->add_cap( ‘manage_options’ ); // capability } // Register our activation hook register_activation_hook( __FILE__, ‘activate_plugin_name’ ); function deactivate_plugin_name() { $role = get_role( ‘editor’ ); $role->remove_cap( ‘manage_options’ ); // capability } // Register our de-activation hook register_deactivation_hook( __FILE__, ‘deactivate_plugin_name’ );` Refer my tutorial for … Read more

How to Move the Author Metabox into the “Publish” metabox?

I somewhat suck with admin stuff so test this carefully. I had some issues with users not coming up in dropdown, but it fails with default meta box as well – probably because of my messed up test stack. add_action( ‘admin_menu’, ‘remove_author_box’ ); add_action( ‘post_submitbox_misc_actions’, ‘author_in_publish’ ); function remove_author_box() { remove_meta_box( ‘authordiv’, ‘post’, ‘normal’ ); … Read more

Disable escaping html

I just installed SyntaxHighlighter Evolved, and while testing on an existing post I was dismayed to find that all the quotes ” had been converted to " (the single quotes were fine). I was using the HTML editor. In case you are also in this position, I found that it’s just the post preview that … Read more