Skip to content

Instantly share code, notes, and snippets.

@brasofilo
Last active December 10, 2015 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brasofilo/4367116 to your computer and use it in GitHub Desktop.
Save brasofilo/4367116 to your computer and use it in GitHub Desktop.
Values in $wp_admin_bar
/**
* Value of $nodes in the following:
* global $wp_admin_bar;
* $nodes = $wp_admin_bar->get_nodes();
*/
Array
(
[user-actions] => stdClass Object
(
[id] => user-actions
[title] =>
[parent] => my-account
[href] =>
[group] => 1
[meta] => Array
(
)
)
[user-info] => stdClass Object
(
[id] => user-info
[title] => <img alt='' src='http://0.gravatar.com/avatar/' class='avatar avatar-64 photo' height='64' width='64' /><span class='display-name'>user-name</span>
[parent] => user-actions
[href] => http://example.com/wp-admin/profile.php
[group] =>
[meta] => Array
(
[tabindex] => -1
)
)
[edit-profile] => stdClass Object
(
[id] => edit-profile
[title] => Edit My Profile
[parent] => user-actions
[href] => http://example.com/wp-admin/profile.php
[group] =>
[meta] => Array
(
)
)
[logout] => stdClass Object
(
[id] => logout
[title] => Log Out
[parent] => user-actions
[href] => http://example.com/wp-login.php?action=logout&amp;_wpnonce=d355d264be
[group] =>
[meta] => Array
(
)
)
[my-account] => stdClass Object
(
[id] => my-account
[title] => Howdy, User Name<img alt='' src='http://0.gravatar.com/avatar/' class='avatar avatar-16 photo' height='16' width='16' />
[parent] => top-secondary
[href] => http://example.com/wp-admin/profile.php
[group] =>
[meta] => Array
(
[class] => with-avatar
[title] => My Account
)
)
[ws-plugin--qcache-ajax-clear-menu] => stdClass Object
(
[id] => ws-plugin--qcache-ajax-clear-menu
[title] => <form onsubmit="return false;"><input type="button" id="ws-plugin--qcache-ajax-clear" style="outline:none; min-width:115px; padding-left:22px; padding-right:5px; color:#000000; text-shadow:none; background-repeat:no-repeat; background-position:5px center; background-image:url('http://example.com/wp-content/plugins/quick-cache/images/ajax-clear.png');" value="Clear Cache" title="Clear Cache Manually" onclick="jQuery (this).css ('background-image', 'url(\'http://example.com/wp-content/plugins/quick-cache/images/ajax-loader.gif\')'); jQuery.post (ajaxurl, {action: 'ws_plugin__qcache_ajax_clear', ws_plugin__qcache_ajax_clear: '6f7175f8ca'}, function (response){ eval (response); });" /></form>
[parent] => top-secondary
[href] =>
[group] =>
[meta] => Array
(
[class] => ws-plugin--qcache-ajax-clear-menu
[tabindex] => -1
)
)
[about] => stdClass Object
(
[id] => about
[title] => About WordPress
[parent] => wp-logo
[href] => http://example.com/wp-admin/about.php
[group] =>
[meta] => Array
(
)
)
[wporg] => stdClass Object
(
[id] => wporg
[title] => WordPress.org
[parent] => wp-logo-external
[href] => http://wordpress.org/
[group] =>
[meta] => Array
(
)
)
[documentation] => stdClass Object
(
[id] => documentation
[title] => Documentation
[parent] => wp-logo-external
[href] => http://codex.wordpress.org/
[group] =>
[meta] => Array
(
)
)
[support-forums] => stdClass Object
(
[id] => support-forums
[title] => Support Forums
[parent] => wp-logo-external
[href] => http://wordpress.org/support/
[group] =>
[meta] => Array
(
)
)
[feedback] => stdClass Object
(
[id] => feedback
[title] => Feedback
[parent] => wp-logo-external
[href] => http://wordpress.org/support/forum/requests-and-feedback
[group] =>
[meta] => Array
(
)
)
[site-name] => stdClass Object
(
[id] => site-name
[title] => Example dot Com
[parent] =>
[href] => http://example.com/
[group] =>
[meta] => Array
(
)
)
[view-site] => stdClass Object
(
[id] => view-site
[title] => Visit Site
[parent] => site-name
[href] => http://example.com/
[group] =>
[meta] => Array
(
)
)
[updates] => stdClass Object
(
[id] => updates
[title] => <span class="ab-icon"></span><span class="ab-label">11</span><span class="screen-reader-text">11 Plugin Updates</span>
[parent] =>
[href] => http://example.com/wp-admin/update-core.php
[group] =>
[meta] => Array
(
[title] => 11 Plugin Updates
)
)
[comments] => stdClass Object
(
[id] => comments
[title] => <span class="ab-icon"></span><span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-1">1</span>
[parent] =>
[href] => http://example.com/wp-admin/edit-comments.php
[group] =>
[meta] => Array
(
[title] => 1 comment awaiting moderation
)
)
[theme_options] => stdClass Object
(
[id] => theme_options
[title] => <span style="color:#fadd3d;">Check your blog's security</span>
[parent] =>
[href] => http://example.com/wp-admin/tools.php?page=ultimate-security-checker
[group] =>
[meta] => Array
(
)
)
[new-content] => stdClass Object
(
[id] => new-content
[title] => <span class="ab-icon"></span><span class="ab-label">New</span>
[parent] =>
[href] => http://example.com/wp-admin/post-new.php
[group] =>
[meta] => Array
(
[title] => Add New
)
)
[new-post] => stdClass Object
(
[id] => new-post
[title] => Post
[parent] => new-content
[href] => http://example.com/wp-admin/post-new.php
[group] =>
[meta] => Array
(
)
)
[new-media] => stdClass Object
(
[id] => new-media
[title] => Media
[parent] => new-content
[href] => http://example.com/wp-admin/media-new.php
[group] =>
[meta] => Array
(
)
)
[new-link] => stdClass Object
(
[id] => new-link
[title] => Link
[parent] => new-content
[href] => http://example.com/wp-admin/link-add.php
[group] =>
[meta] => Array
(
)
)
[new-page] => stdClass Object
(
[id] => new-page
[title] => Page
[parent] => new-content
[href] => http://example.com/wp-admin/post-new.php?post_type=page
[group] =>
[meta] => Array
(
)
)
[new-user] => stdClass Object
(
[id] => new-user
[title] => User
[parent] => new-content
[href] => http://example.com/wp-admin/user-new.php
[group] =>
[meta] => Array
(
)
)
[ngg-menu] => stdClass Object
(
[id] => ngg-menu
[title] => Gallery
[parent] =>
[href] => http://example.com/wp-admin/admin.php?page=nextgen-gallery
[group] =>
[meta] => Array
(
)
)
[ngg-menu-overview] => stdClass Object
(
[id] => ngg-menu-overview
[title] => Overview
[parent] => ngg-menu
[href] => http://example.com/wp-admin/admin.php?page=nextgen-gallery
[group] =>
[meta] => Array
(
)
)
[ngg-menu-add-gallery] => stdClass Object
(
[id] => ngg-menu-add-gallery
[title] => Add Gallery / Images
[parent] => ngg-menu
[href] => http://example.com/wp-admin/admin.php?page=nggallery-add-gallery
[group] =>
[meta] => Array
(
)
)
[ngg-menu-manage-gallery] => stdClass Object
(
[id] => ngg-menu-manage-gallery
[title] => Manage Gallery
[parent] => ngg-menu
[href] => http://example.com/wp-admin/admin.php?page=nggallery-manage-gallery
[group] =>
[meta] => Array
(
)
)
[ngg-menu-manage-album] => stdClass Object
(
[id] => ngg-menu-manage-album
[title] => Album
[parent] => ngg-menu
[href] => http://example.com/wp-admin/admin.php?page=nggallery-manage-album
[group] =>
[meta] => Array
(
)
)
[ngg-menu-tags] => stdClass Object
(
[id] => ngg-menu-tags
[title] => Tags
[parent] => ngg-menu
[href] => http://example.com/wp-admin/admin.php?page=nggallery-tags
[group] =>
[meta] => Array
(
)
)
[ngg-menu-options] => stdClass Object
(
[id] => ngg-menu-options
[title] => Options
[parent] => ngg-menu
[href] => http://example.com/wp-admin/admin.php?page=nggallery-options
[group] =>
[meta] => Array
(
)
)
[ngg-menu-style] => stdClass Object
(
[id] => ngg-menu-style
[title] => Style
[parent] => ngg-menu
[href] => http://example.com/wp-admin/admin.php?page=nggallery-style
[group] =>
[meta] => Array
(
)
)
[ngg-menu-about] => stdClass Object
(
[id] => ngg-menu-about
[title] => About
[parent] => ngg-menu
[href] => http://example.com/wp-admin/admin.php?page=nggallery-about
[group] =>
[meta] => Array
(
)
)
[notes] => stdClass Object
(
[id] => notes
[title] => <span id="wpnt-notes-unread-count" class="wpnt-loading wpn-read">
<span class="noticon noticon-notification" /></span>
</span>
[parent] => top-secondary
[href] =>
[group] =>
[meta] => Array
(
[html] => <div id="wpnt-notes-panel" style="display:none"><div class="wpnt-notes-panel-header"><span class="wpnt-notes-header">Notifications</span><span class="wpnt-notes-panel-link"></span></div></div>
[class] => menupop
)
)
[top-secondary] => stdClass Object
(
[id] => top-secondary
[title] =>
[parent] =>
[href] =>
[group] => 1
[meta] => Array
(
[class] => ab-top-secondary
)
)
[wp-logo-external] => stdClass Object
(
[id] => wp-logo-external
[title] =>
[parent] => wp-logo
[href] =>
[group] => 1
[meta] => Array
(
[class] => ab-sub-secondary
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment