WP /wp-admin/admin-ajax.php produces 404

Your /wp-admin/admin-ajax.php might have been modified by another php file or plugin. Try downloading a copy of your wordpress version and overwrite admin-ajax.php with the original source file. If that doesn’t work, try deactivating your plugins (or theme) one by one until you notice a difference.

Display $pagenow error notice on all admin pages

function my_admin_notice() { /* * The class of admin notice should be “notice” plus any one of * -“notice-error”, * -“notice-warning”, * -“notice-success” * -“notice-info”. * Optionally use “is-dismissible” to apply a closing icon. */ echo ‘<div class=”notice notice-info”><p>Custom notice text</p></div>’; } add_action( ‘admin_notices’, ‘my_admin_notice’ ); The only thing is, these notices does not show … Read more

display list of posts/pages in admin edit post/page

Try the CMS Tree Page View plugin (my favorite) or the Easily navigate pages on dashboard plugin. Both allow you to have a list of your pages on the Dashboard. Then you should be able to add that panel using this reference: add_meta_box to integrate the box that appears on the Dashboard (see wp_add_dashboard_widget in … Read more