Admin Ajax is returning 0

I am relatively new to jQuery and AJAX in particular. I have a small issue with the return value always being 0, though I think this is actually the success message and it’s not returning anything. I have scoured the Google-verse and I have the die() function on the PHP callback and I believe the … Read more

How to filter post listing (in WP dashboard posts listing) using a custom field (search functionality)?

Despite the fact I googled a lot, I’ve not found the answer to a very simple question : I have some posts with a custom field (i.e. supplier_name). I would like to be able to search and filter my posts according to this custom field. In other words, in the admin posts listing, I would … Read more

How to remove admin menu pages inserted by plugins?

I’ve got the following code, which cleans up a lot of stuff that is not going to be used within the admin area: add_action( ‘admin_menu’, ‘my_remove_menu_pages’ ); function my_remove_menu_pages() { remove_menu_page( ‘edit.php’ ); //Posts remove_menu_page( ‘upload.php’ ); //Media remove_menu_page( ‘edit-comments.php’ ); //Comments remove_menu_page( ‘themes.php’ ); //Appearance remove_menu_page( ‘users.php’ ); //Users remove_menu_page( ‘tools.php’ ); //Tools remove_menu_page( … Read more