Unable to locate WordPress Root directory

I’m sure there is another way to fix it, but you could always try to do a fresh install. Make sure you backup your database and theme files, of course, and then just drop them into the new install. Not the most eloquent solution, but it has worked for me in the past when I … Read more

All Users > User List > Update User Meta Field Inline

Yes, we need jQuery for that. The first thing is to give proper classes and ID’s to the elements. In manage_users_custom_column, add a class and a data selector to the checkbox: “<input type=”checkbox” data-approval=”#approval-$user_id” class=”my-class” value=”{$column_value}” />” And in user_row_actions, an ID to the <a> tag: id=’approval-$user_id’. Now, we have all the elements properties and … Read more

Redirect loop in /wp-admin/

Try renaming the plugins folder to e.g. plugins-, so as to make sure it has nothing to do with them. Switch it back if it’s not the case. If it was, proceed to do similar steps with each individual plugin folder until you locate the culprit. The same for themes if you’re still out of … Read more

Dashboard Widgets – Add Admin Page With Same Functionality

I guess “easy” is a relative term. Yes, you can create your own. For adding an admin page there are a glut of tutorials out there. This one works (and has some other info you might need) http://wp.smashingmagazine.com/2011/03/08/ten-things-every-wordpress-plugin-developer-should-know/. Search for “Add Your Own Settings Page or Admin Menu” on the page. jQuery UI is loaded … Read more

Disable inline_edit() on edit.php

I was never able to find a filter either, but there is a check for whether the taxonomy is allowed to show it’s UI. So what I used to do in one of my plugins was to tweak the $wp_taxonomies global variable on the edit page. /** * Disable the UI for categories, but only … Read more

Edit default comments page in WP Admin

The comments are displayed using an instance of the WP_Comments_List_Table class which is defined as the global variable $wp_list_table. You could extend this class and then use any action after $wp_list_table is defined (admin_head-edit-comments.php would work) to create an instance of your own class, copy all properties of $wp_list_table to the instance of your class … Read more