Tag Info

Hot answers tagged

6

Remember Apple's "Goto Fail"? Similar situation: Your code actually does this, when indentation is corrected: foreach ( $post_types as $post_type ) remove_meta_box('trackbacksdiv', $post_type, 'normal'); remove_meta_box('postcustom', $post_type, 'normal'); remove_meta_box('authordiv', $post_type, 'normal'); remove_meta_box('postexcerpt', ...


5

Usually, this should help: Open your database (with phpmyadmin, navicat, etc) Open the wp_user table and have a look for the ID of your admin user (usually 1) Open the wp_usermeta table and search for the row that has the user_id of your user paste the following string into the meta_value field of the row: a:1:{s:13:"administrator";b:1;} that should be ...


2

Please note, this should not be the accepted answer, this is only an extension to the answer given by @ungestaltbar, so please, @willow, accept the other answer, and if you deemed my answer useful, simply just give me an upvote :-) The biggest issue that should solve your problem have been discussed in the other answer, but I would like to point out some ...


1

Users are queried differently than posts so you have to hook into the 'pre_user_query' action to filter user queries. Let me know if this works: add_action( 'pre_user_query', 'my_pre_user_query', 1 ); function my_pre_user_query( $query ) { global $wpdb, $current_screen; // Only filter in the admin if ( ! is_admin() ) return; // ...


1

Ok, I revisited this and revised my answer.. But like I said before: the hook you are (trying) to use won't/can't work for the purpose you are aiming for, simply because its only occurrence is in class-wp-posts-list-table.php, which nomen est omen is used to show the post list, the right place should be class-wp-terms-list-table.php. 1. What you ...


1

If this is a single WordPress install, there are a couple database entries with your old domain. Specifically, siteurl and home within wp_posts. That said, if the dev URL is temporary, you can also set the following two constants in wp-config.php: define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']); define('WP_SITEURL', WP_HOME . '/'); Provided that ...


1

There are no direct filters using which we can change the content of Name column. So to get what you want, we should remove 'Name' column too and create our own Name column. Therefore, modify_user_columns function will be like this function modify_user_columns($column) { $column = array( "cb" => "<input type=\"checkbox\" />", ...



Only top voted, non community-wiki answers of a minimum length are eligible