Disable Please visit the Update Network page to update all your sites. Notice from Dashboard

This message was fired on two hooks. add_action( ‘admin_notices’, ‘site_admin_notice’ ); add_action( ‘network_admin_notices’, ‘site_admin_notice’ ); Remove this and you remove the message, use remove_action. To remove this function use a function, like the follow example. add_action( ‘admin_menu’,’fb_hide_site_notice’ ); function fb_hide_site_notice() { remove_action( ‘admin_notices’, ‘site_admin_notice’ ); } Now for the network ares: add_action( ‘network_admin_menu’, ‘fb_hide_network_notice’ ); … Read more

Sorting Posts by Date – get_blogs_of_user_id()

You can build an array of all post items, and then sort them by date at the end of your querying: $blogs = get_blogs_of_user( get_current_user_id() ); if ( $blogs ) { $items = array(); foreach ( $blogs as $blog ) { switch_to_blog( $blog->userblog_id ); $posts = get_posts( ‘posts_per_page=2’ ); foreach ( $posts as $post ) … Read more

Problem with paging on Multisite

If you’re using the category archive template you do not need to create a new WP_Query instance. Just filter the main query using pre_get_posts(). Put this in functions php or a plugin: add_action( ‘pre_get_posts’, wp_se_pre_get_posts’ ); function wp_se_pre_get_posts( $query ) { if ( is_admin() || ! $query->is_main_query || ! is_category( ‘pressmeddelande’ ) return $query; $query->set( … Read more

Updating themes customized by users

Short answer: yes. Long answer: The Customize API uses one of two methods for storing customizations: the Settings API or the Theme Mods API (the latter being the default method). Thus, all changes are saved to the database, either as a Theme-defined option, or via theme_mods_{themeslug}. When the Theme is updated, the Theme files in … Read more