menu->{"my-account-with-avatar"}["href"]) && isset ($wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"edit-my-profile"}["href"])) { $wp_admin_bar->menu->{"my-account-with-avatar"}["href"] = $lwp; $wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"edit-my-profile"}["href"] = $lwp; unset ($wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"dashboard"}); } /**/ if (isset ($wp_admin_bar->menu->{"my-blogs"}["href"]) && isset ($wp_admin_bar->menu->{"my-blogs"}["children"]) && is_object ($wp_admin_bar->menu->{"my-blogs"}["children"])) { $wp_admin_bar->menu->{"my-blogs"}["href"] = "#"; /* Void this link by converting to #. */ /**/ foreach ($wp_admin_bar->menu->{"my-blogs"}["children"] as &$blog) if (is_array ($blog) && isset ($blog["href"]) && isset ($blog["children"]) && is_object ($blog["children"])) { $blog["href"] = preg_replace ("/\/wp-admin/", "", $blog["href"]); unset ($blog["children"]); /* Cause all we need is the link. */ } } } /**/ do_action ("ws_plugin__s2member_after_filter_admin_menu_bar", get_defined_vars ()); /**/ return; /* Return for uniformity. */ } } } ?>