How to remove the site health dashboard widget?

The following snippet removes the registered site health dashboard widget from the dashboard. Add the code to your plugin or functions.php file: add_action(‘wp_dashboard_setup’, ‘remove_site_health_dashboard_widget’); function remove_site_health_dashboard_widget() { remove_meta_box(‘dashboard_site_health’, ‘dashboard’, ‘normal’); }

Making a client area in WordPress – Any good tutorials or plugins?

First, for invoicing/billing use the WP Invoice plugin: http://wordpress.org/extend/plugins/wp-invoice/ The “members” plugin may also be useful: http://wordpress.org/extend/plugins/members/ For a custom redirect, to send them to custom pages rather than just the admin panel use: http://wordpress.org/extend/plugins/peters-login-redirect/ If you had them register, greet them with a custom welcome message on the page they log-in to using this … Read more

Hook the Keydown Event in the TinyMCE Post Editor

the TinyMCE Editor has its own keydown event handler and its hooked to a function on initiation so to do that you can create a tinymce plugin or use the wordpress initiation of it with tiny_mce_before_init hook like this: add_filter( ‘tiny_mce_before_init’, ‘wpse24113_tiny_mce_before_init’ ); function wpse24113_tiny_mce_before_init( $initArray ) { $initArray[‘setup’] = <<<JS [function(ed) { ed.onKeyDown.add(function(ed, e) … Read more

How to display the user that published a pending post?

The reason that get_the_modified_author() is not working is that it relies on being used within the WordPress loop. wp_get_recent_posts() does not set up a global post object. Here is a complete example based on your original code that replaces get_the_modified_author() with some simple code to get the name of the last person who edited the … Read more

Is it OK to move admin menu items?

this might work: add_filter(‘custom_menu_order’, ‘my_custom_menu_order’); add_filter(‘menu_order’, ‘my_custom_menu_order’); function my_custom_menu_order($menu_ord) { if (!$menu_ord) return true; return array( ‘index.php’, // the dashboard link ‘edit.php?post_type=custom_post_type’, ‘edit.php?post_type=page’, ‘edit.php’ // posts // add anything else you want, just get the url ); }