How to set default editor tab

It’s easier then you thought! Just add this code to the functions.php file in your theme. function prefix_set_default_editor() { return ‘text’; } add_filter( ‘wp_default_editor’, ‘prefix_set_default_editor’ );

How to disable https from wordpress site?

I think it’s in the wp_options table as ‘home_url’ and ‘base_url’, set both to start with http and Save the table in phpMyAdmin. If you can’t login still, disable plugin by renaming the folder. Still failing, check htaccess file and wp-config files for forced security.

Categorizing Page Templates

Great question. As far as I can tell there isn’t a way to filter this list (there’s a long trac ticket about a proposal to, if you’re interested, and also related (but different) questions on this site here and here). Because there’s no filter, you may have to resort to doing it with jQuery. We … Read more

Custom Thickbox Broken on Dashboard Page?

After digging into this for a bit, it looks like there’s a number of pages where WordPress ends up changing the behavior of the default thickbox implementation — this includes both javascript changes, as well as custom style rules. You can see an example of this here #File: wp-admin/js/media-upload.js // thickbox settings var tb_position; (function($) … Read more

How do I remove All and Published if not admin?

responding to code added by OP replace post with the slug of your post type. add_filter(‘views_edit-SLUG_OF_YOUR_POST_TYPE’, function($views) { … So a custom post type of Library Books with a slug of library-books: add_filter(‘views_edit-library-books’, function($views) {… original response Use $wp_roles->remove_cap( $role, $cap ); on all roles except the admin, removing the edit_others_posts cap. See this for … Read more

Single category’s posts list in admin menu

The best approach would be to create a custom post type “News” and hide the menu item of “posts” – The code below will create a Custom post type for news /* * Creating a function to create our CPT */ function custom_post_type() { // Set UI labels for Custom Post Type $labels = array( … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)