menu->{"my-account-with-avatar"})) /* Profile. */ { if (isset ($wp_admin_bar->menu->{"my-account-with-avatar"}["href"])) $wp_admin_bar->menu->{"my-account-with-avatar"}["href"] = $lwp; /**/ if (isset ($wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"edit-profile"}["href"])) $wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"edit-profile"}["href"] = $lwp; /* Backward compatibility ( {"edit-my-profile"} ), prior to WordPress® 3.2. */ if (isset ($wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"edit-my-profile"}["href"])) $wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"edit-my-profile"}["href"] = $lwp; /* Backward compatibility ( ["children"]->{"dashboard"} ), prior to WordPress® 3.2. */ if (isset ($wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"dashboard"})) unset($wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"dashboard"}); } /**/ if (isset ($wp_admin_bar->menu->{"dashboard"})) /* Dashboard menu, we don't need this. */ unset($wp_admin_bar->menu->{"dashboard"}); /* Removes this entire menu from the bar. */ /**/ if (isset ($wp_admin_bar->menu->{"my-blogs"}["href"])) /* Deals with multiple Blog drop-down. */ { $wp_admin_bar->menu->{"my-blogs"}["href"] = "#"; /* Void this link out by converting to `#`. */ /**/ if (isset ($wp_admin_bar->menu->{"my-blogs"}["children"]) && is_object ($wp_admin_bar->menu->{"my-blogs"}["children"])) foreach ($wp_admin_bar->menu->{"my-blogs"}["children"] as &$blog) /* Modify other Blog links in drop-down. */ if (is_array ($blog) && isset ($blog["href"], $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. */ } } } ?>