BLOG

WordPress Objects Examples

$current_user

[php]WP_User Object
(
[data] => stdClass Object
(
[ID] => 1
[user_login] => admin
[user_pass] => $P$xxxxxxx7o3SVZWJYrn/
[user_nicename] => admin
[user_email] => xxx@gmail.com
[user_url] =>
[user_registered] => 2011-03-04 22:59:53
[user_activation_key] =>
[user_status] => 0
[display_name] => admin
[first_name] =>
[last_name] =>
[nickname] => admin
[description] =>
[rich_editing] => true
[comment_shortcuts] => false
[admin_color] => fresh
[use_ssl] => 0
[show_admin_bar_front] => false
[show_admin_bar_admin] => false
[aim] =>
[yim] =>
[jabber] =>
[wp_capabilities] => Array
(
[administrator] => 1
)

[wp_user_level] => 10
[wp_dashboard_quick_press_last_post_id] => 97
[closedpostboxes_dashboard] => Array
(
[0] => dashboard_incoming_links
[1] => dashboard_plugins
[2] => dashboard_primary
[3] => dashboard_secondary
)

[metaboxhidden_dashboard] => Array
(
)

[wp_usersettings] => m6=o&m9=o&m4=o&m1=o&imgsize=full&editor=html&m10=o&m5=o&hidetb=1&m7=o
[wp_usersettingstime] => 1301335933
[closedpostboxes_page] => Array
(
)

[metaboxhidden_page] => Array
(
[0] => postcustom
[1] => commentsdiv
[2] => slugdiv
[3] => authordiv
[4] => revisionsdiv
)

[plugins_last_view] => all
[user_level] => 10
[user_firstname] =>
[user_lastname] =>
[user_description] =>
)

[ID] => 1
[id] => 1
[caps] => Array
(
[administrator] => 1
)

[cap_key] => wp_capabilities
[roles] => Array
(
[0] => administrator
)

[allcaps] => Array
(
[switch_themes] => 1
[edit_themes] => 1
[activate_plugins] => 1
[edit_plugins] => 1
[edit_users] => 1
[edit_files] => 1
[manage_options] => 1
[moderate_comments] => 1
[manage_categories] => 1
[manage_links] => 1
[upload_files] => 1
[import] => 1
[unfiltered_html] => 1
[edit_posts] => 1
[edit_others_posts] => 1
[edit_published_posts] => 1
[publish_posts] => 1
[edit_pages] => 1
[read] => 1
[level_10] => 1
[level_9] => 1
[level_8] => 1
[level_7] => 1
[level_6] => 1
[level_5] => 1
[level_4] => 1
[level_3] => 1
[level_2] => 1
[level_1] => 1
[level_0] => 1
[edit_others_pages] => 1
[edit_published_pages] => 1
[publish_pages] => 1
[delete_pages] => 1
[delete_others_pages] => 1
[delete_published_pages] => 1
[delete_posts] => 1
[delete_others_posts] => 1
[delete_published_posts] => 1
[delete_private_posts] => 1
[edit_private_posts] => 1
[read_private_posts] => 1
[delete_private_pages] => 1
[edit_private_pages] => 1
[read_private_pages] => 1
[delete_users] => 1
[create_users] => 1
[unfiltered_upload] => 1
[edit_dashboard] => 1
[update_plugins] => 1
[delete_plugins] => 1
[install_plugins] => 1
[update_themes] => 1
[install_themes] => 1
[update_core] => 1
[list_users] => 1
[remove_users] => 1
[add_users] => 1
[promote_users] => 1
[edit_theme_options] => 1
[delete_themes] => 1
[export] => 1
[administrator] => 1
)

[first_name] =>
[last_name] =>
[filter] =>
[user_login] => admin
[user_pass] => $P$xxxxKa5u67o3SVZWJYrn/
[user_nicename] => admin
[user_email] => radu4iasi@gmail.com
[user_url] =>
[user_registered] => 2011-03-04 22:59:53
[user_activation_key] =>
[user_status] => 0
[display_name] => admin
[nickname] => admin
[description] =>
[rich_editing] => true
[comment_shortcuts] => false
[admin_color] => fresh
[use_ssl] => 0
[show_admin_bar_front] => false
[show_admin_bar_admin] => false
[aim] =>
[yim] =>
[jabber] =>
[wp_capabilities] => Array
(
[administrator] => 1
)

[wp_user_level] => 10
[wp_dashboard_quick_press_last_post_id] => 97
[closedpostboxes_dashboard] => Array
(
[0] => dashboard_incoming_links
[1] => dashboard_plugins
[2] => dashboard_primary
[3] => dashboard_secondary
)

[metaboxhidden_dashboard] => Array
(
)

[wp_usersettings] => m6=o&m9=o&m4=o&m1=o&imgsize=full&editor=html&m10=o&m5=o&hidetb=1&m7=o
[wp_usersettingstime] => 1301335933
[closedpostboxes_page] => Array
(
)

[metaboxhidden_page] => Array
(
[0] => postcustom
[1] => commentsdiv
[2] => slugdiv
[3] => authordiv
[4] => revisionsdiv
)

[plugins_last_view] => all
[user_level] => 10
[user_firstname] =>
[user_lastname] =>
[user_description] =>
)[/php]
 

Location

[php]Array
(
[file_field] => Array
(
[name] => blue_eyed_woman_with_veil_on_face-other.jpg
[type] => image/jpeg
[tmp_name] => /Applications/MAMP/tmp/php/phppC40MA
[error] => 0
[size] => 98811
)

)[/php]

Category

[php](
[term_id] => 39
[name] => Portfolio – Category 2
[slug] => portfolio-category-2
[term_group] => 0
[term_taxonomy_id] => 39
[taxonomy] => category
[description] =>
[parent] => 0
[count] => 2
[cat_ID] => 39
[category_count] => 2
[category_description] =>
[cat_name] => Portfolio – Category 2
[category_nicename] => portfolio-category-2
[category_parent] => 0
)[/php]

Leave a comment

Your email address will not be published

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

54 + = 63