Removing “Sub-menus” from My Sites Drop-down in Admin Bar

Old question but I just came accros a fix. I hope it helps someone else. Add this to your theme functions.php file add_action( ‘wp_before_admin_bar_render’, ‘remove_mysites_comment_link’ ); function remove_mysites_comment_link () { global $wp_admin_bar; foreach ( (array) $wp_admin_bar->user->blogs as $blog ) { $menu_id_c=”blog-” . $blog->userblog_id . ‘-c’; $wp_admin_bar->remove_menu($menu_id_c); } }

Restrict Admin Capabilities in MultiSite

Editing super admin capabilities is a little different from editing the capabilities of every other role, because there is a slight detour in the way WP checks the current user’s capabilities. This is what you find on capabilities.php on line 864: function has_cap( $cap ) { // (…) // Multisite super admin has all caps … Read more

Localized WordPress content for different sub-locales of same language?

Well, actually, you should view your site as requiring “multilingual” capabilities, even if the base language for both countries is identical, because the actual locale for each is nevertheless different. More specifically, you can create variant “translations” for your British (‘en_GB’) and Irish (‘en_IE’) localizations. A plugin such WPML (WordPress Multilingual) can help you implement … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)