Dashboard memory overload problem

At the top of your wp-config.php you add define(‘WP_MAX_MEMORY_LIMIT’, ‘256M’); this will work only in back-end and do not increase memory in front-end. If this doesn’t work in your site, you can also add this define(‘WP_MEMORY_LIMIT’, ‘256M’);

How to use the ‘Quick edit’ option only for Admin and Editor in ‘All posts’ on the Dashboard?

Use a conditional depending on capability. Admin’s and Editors can both moderate comments so we can use the moderate_comments capability. If a user cannot moderate comments, then remove the quick edit link. Then we can filter post_row_actions to remove the quick edit link. function remove_quick_edit(){ function unset_quick_edit( $actions ) { unset( $actions[‘inline hide-if-no-js’] ); return … Read more

Limit scripts and styles on dashboard for user role

Install Query Monitor to check which scripts and what hook they are using for your role. Keep in mind these scripts may have dependencies. You should probably start with the Dashboard Widgets API. The names of the default widgets on the dashboard: // Main column (left): $wp_meta_boxes[‘dashboard’][‘normal’][‘high’][‘dashboard_browser_nag’] $wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_right_now’] $wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_activity’] // Side Column (right): $wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_quick_press’] $wp_meta_boxes[‘dashboard’][‘side’][‘core’][‘dashboard_primary’] … Read more

Force 3 Column Dashboard Widgets

Yes it is. Paste this code in your theme’s functions.php file. // Change dashboard widget width function change_dashboard_column_width() { ?> <style> @media only screen and (min-width: 500px) { #dashboard-widgets .postbox-container { width:33.3% !important; } } </style> <?php } add_action(‘admin_head’,’change_dashboard_column_width’); To force 2 columns, change the width to 50%. For 4 columns, change it to 25%.