=")) ? true : false; /**/ if (is_object ($wp_admin_bar) && !current_user_can ("edit_posts") /* Always for Users/Members. */) { if ($uses_nodes && $wp_admin_bar->get_node /* We have this node? */ ("site-name")) { $id = /* Give this a special/unique ID. */ "s2-site-name"; $title = wp_html_excerpt /* A brief excerpt. */ (get_bloginfo ("name"), 42); $title = ($title !== get_bloginfo ("name")) ? trim ($title) . "…" : $title; $href = /* Change to front page. */ site_url ("/"); /**/ $wp_admin_bar->add_node (array ("id" => $id, "title" => $title, "href" => $href)); $wp_admin_bar->remove_node /* Ditch now, replacing this. */ ("site-name"); /**/ unset /* A little housekeeping. */ ($id, $title, $href); } if ($uses_nodes && $wp_admin_bar->get_node /* We have this node? */ ("wp-logo")) $wp_admin_bar->remove_node /* Ditch this node. */ ("wp-logo"); /* ------- */ if (!$uses_nodes && isset /* Have this item? */ ($wp_admin_bar->menu->{"dashboard"})) unset /* Ditch this item. */ ($wp_admin_bar->menu->{"dashboard"}); /**/ if (!$uses_nodes && isset /* Have this item? */ ($wp_admin_bar->menu->{"my-blogs"})) unset /* Ditch this item. */ ($wp_admin_bar->menu->{"my-blogs"}); /* ------- */ if ($uses_nodes && $wp_admin_bar->get_node /* We have this node? */ ("my-sites")) $wp_admin_bar->remove_node /* Ditch this node. */ ("my-sites"); } /**/ if (is_object ($wp_admin_bar) && !current_user_can ("edit_posts") /* If locking Users/Members out of `/wp-admin/` areas. */) if (apply_filters ("ws_plugin__s2member_admin_lockout", $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["force_admin_lockouts"], get_defined_vars ())) { $lwp = c_ws_plugin__s2member_login_redirects::login_redirection_url (); $lwp = (!$lwp) ? get_page_link ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["login_welcome_page"]) : $lwp; /**/ if ($uses_nodes && $wp_admin_bar->get_node /* We have this node? */ ("my-account")) $wp_admin_bar->add_node /* Update this node. */ (array ("id" => "my-account", "href" => $lwp)); /**/ if ($uses_nodes && $wp_admin_bar->get_node /* We have this node? */ ("user-info")) $wp_admin_bar->add_node /* Update this node. */ (array ("id" => "user-info", "href" => $lwp)); /**/ if ($uses_nodes && $wp_admin_bar->get_node /* We have this node? */ ("edit-profile")) $wp_admin_bar->add_node /* Update this node. */ (array ("id" => "edit-profile", "href" => $lwp)); /* ------- */ if (!$uses_nodes && isset /* Have this item? */ ($wp_admin_bar->menu->{"my-account"}["href"])) $wp_admin_bar->menu->{"my-account"}["href"] = /* Update this item. */ $lwp; /**/ if (!$uses_nodes && isset /* Have this item? */ ($wp_admin_bar->menu->{"my-account"}["children"]->{"edit-profile"}["href"])) $wp_admin_bar->menu->{"my-account"}["children"]->{"edit-profile"}["href"] = /* Update this item. */ $lwp; /**/ if (!$uses_nodes && isset /* Have this item? */ ($wp_admin_bar->menu->{"my-account"}["children"]->{"user-info"}["href"])) $wp_admin_bar->menu->{"my-account"}["children"]->{"user-info"}["href"] = /* Update this item. */ $lwp; /* ------- */ if (!$uses_nodes && isset /* Have this item? */ ($wp_admin_bar->menu->{"my-account-with-avatar"}["href"])) $wp_admin_bar->menu->{"my-account-with-avatar"}["href"] = /* Update this item. */ $lwp; /**/ if (!$uses_nodes && isset /* Have this item? */ ($wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"user-info"}["href"])) $wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"user-info"}["href"] = /* Update this item. */ $lwp; /**/ if (!$uses_nodes && isset /* Have this item? */ ($wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"edit-profile"}["href"])) $wp_admin_bar->menu->{"my-account-with-avatar"}["children"]->{"edit-profile"}["href"] = /* Update this item. */ $lwp; } /**/ do_action ("ws_plugin__s2member_after_filter_admin_menu_bar", get_defined_vars ()); /**/ return; /* Return for uniformity. */ } } } ?>