How to disable the “Your site has updated to WordPress x.y.z” admin email?
In your functions.php add: add_filter( ‘auto_core_update_send_email’, ‘__return_false’ );
In your functions.php add: add_filter( ‘auto_core_update_send_email’, ‘__return_false’ );
This is a little hacky, but doesn’t require you to edit core files, which you should never do, as you are aware. add_action(‘admin_init’, function() { $_GET[‘mode’] = ‘grid’; }, 100); This will always force the mode into grid view. What it does not do, it does not remove the List View icon it does not … Read more
add_action(“user_register”, “set_user_admin_bar_false_by_default”, 10, 1); function set_user_admin_bar_false_by_default($user_id) { update_user_meta( $user_id, ‘show_admin_bar_front’, ‘false’ ); update_user_meta( $user_id, ‘show_admin_bar_admin’, ‘false’ ); } Place in theme functions file or you can make into a plugin. Once user registers it will go and set the users admin bar prefs to false. The user can then, once logged in, set this to … Read more
here you go: <?php /* Plugin Name: ajaxed-status Plugin URI: http://en.bainternet.info Description: answer to : Custom column for changing post status via ajax http://wordpress.stackexchange.com/questions/33442/custom-column-for-changing-post-status-via-ajax Version: 1.0 Author: Bainternet Author URI: http://en.bainternet.info */ if ( !class_exists(‘ajaxed_status’)){ class ajaxed_status { //constarctor public function __construct() { global $pagenow,$typenow; //&& $typenow ==’page’ if (is_admin() && $pagenow==’edit.php’){ add_filter(‘admin_footer’,array($this,’insert_ajax_status_script’)); } add_filter( … Read more
I haven’t tried this, but it may be the ticket. This one has been updated a little more recently JUIZ smart mobile admin
As I couldn’t find any filter to override the WP_Posts_List_Table class, I propose a quite hacky solution by doing this: Query only parents in pre_get_posts; Query their children on wp and change $wp_query->posts accordingly. This might need some more work as I’m probably breaking pagination numbers or so. // Use a query variable to control … Read more
This is Trac ticket 51223: commonL10n and other JS globals removed without backwards compatibility In WordPress 5.5, the localized translations under commonL10n were replaced by wp.i18n.__ without deprecation notice or backwards compatibility. Plugins using commonL10n now have JavaScript errors introduced by updating WordPress which can break site functionality. It was fixed in 5.5.1 by adding … Read more
No, it doesn’t. You could hook into the appropriate filters and save the information in an option or in a custom post type. I would log updates to PHP, MySQL and the server software too. Would be an interesting project. 🙂
You will not be able to enable the checkbox for non-super-admins as the code for it shows: <?php if ( is_multisite() && is_super_admin() ) { ?> <tr> <th scope=”row”><label for=”noconfirmation”><?php _e(‘Skip Confirmation Email’) ?></label></th> <td><label for=”noconfirmation”><input type=”checkbox” name=”noconfirmation” id=”noconfirmation” value=”1″ <?php checked( $new_user_ignore_pass ); ?> /> <?php _e( ‘Add the user without sending them a … Read more
This should get you started. I’ve used a timeout of 5 minutes to allow for time sitting idle on the website. You could improve the accuracy with a script (if the current user is the admin) & pinging an AJAX request every few minutes to update the admin_last_seen timestamp. /** * Check if the admin … Read more