Multiple custom post types under one admin menu

Just create a “placeholder” menu that you can then assign all your post types to: function wpse_226690_admin_menu() { add_menu_page( ‘Events Manager’, ‘Events Manager’, ‘read’, ‘events-manager’, ”, // Callback, leave empty ‘dashicons-calendar’, 1 // Position ); } add_action( ‘admin_menu’, ‘wpse_226690_admin_menu’ ); And then in your register_post_type calls: ‘show_in_menu’ => ‘events-manager’, Tada!

display all posts in wordpress admin

It doesn’t, in the top right under screen options it says, Show on screen, you can set this to a max of 999 ( I have never tried 999 just fyi) and you can select all, then bulk actions—>edit—>apply. Also I think there are plugins that do this that use direct wpdb functions, so you … Read more

Sort admin menu items

It can be done sorting the global $submenu. The sorting that’s applied resets the key number of the sub-array $submenu[‘options-general.php’], which is: array ‘options-general.php’ => array 10 => array 0 => string ‘General’ 1 => string ‘manage_options’ 2 => string ‘options-general.php’ 15 => array 0 => string ‘Writing’ 1 => string ‘manage_options’ 2 => string … Read more

Securing Admin Accounts – Username Discovery

If you have pretty permalinks enabled WordPress will redirect all calls to /?author=1 to the author archive with the user name, eg.: /author/bob/. And then the visitor will know the author name. Use Login Lockdown, that plugin does not reset accounts, it will block IP addresses.

Add WordPress MU Network Admin via Database

So, it turns out that those three changes were all that were needed. It also turns out that if any of the serialized arrays are modified incorrectly (which is easy to do when modifying them by hand), the system will just assume you are not a network administrator. Correcting the serialized array for the site_admins … Read more

Is it possible to create a WordPress tour? V3.3.1

If you look at this plugin I wrote as a demonstration on using pointers, you will see how to create them and have them close correctly: https://github.com/Tarendai/WP-Pointer-Pointers This plugin creates ‘pointer pointers’:

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