Instantly share code, notes, and snippets.
Created
July 26, 2014 19:29
-
Save AramZS/785faeaef0e8da726022 to your computer and use it in GitHub Desktop.
Some objects related to WP networks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# var_dump(get_blogs_of_user(1)); | |
array(4) { | |
[1]=> | |
object(stdClass)#77 (9) { | |
["userblog_id"]=> | |
int(1) | |
["blogname"]=> | |
string(9) "Test Blog" | |
["domain"]=> | |
string(9) "wpmu1.dev" | |
["path"]=> | |
string(1) "/" | |
["site_id"]=> | |
string(1) "1" | |
["siteurl"]=> | |
string(16) "http://wpmu1.dev" | |
["archived"]=> | |
int(0) | |
["spam"]=> | |
int(0) | |
["deleted"]=> | |
int(0) | |
} | |
[2]=> | |
object(stdClass)#86 (9) { | |
["userblog_id"]=> | |
int(2) | |
["blogname"]=> | |
string(3) "One" | |
["domain"]=> | |
string(13) "one.wpmu1.dev" | |
["path"]=> | |
string(1) "/" | |
["site_id"]=> | |
string(1) "1" | |
["siteurl"]=> | |
string(20) "http://one.wpmu1.dev" | |
["archived"]=> | |
int(0) | |
["spam"]=> | |
int(0) | |
["deleted"]=> | |
int(0) | |
} | |
[3]=> | |
object(stdClass)#89 (9) { | |
["userblog_id"]=> | |
int(3) | |
["blogname"]=> | |
string(3) "Two" | |
["domain"]=> | |
string(13) "two.wpmu1.dev" | |
["path"]=> | |
string(1) "/" | |
["site_id"]=> | |
string(1) "1" | |
["siteurl"]=> | |
string(20) "http://two.wpmu1.dev" | |
["archived"]=> | |
int(0) | |
["spam"]=> | |
int(0) | |
["deleted"]=> | |
int(0) | |
} | |
[4]=> | |
object(stdClass)#292 (9) { | |
["userblog_id"]=> | |
int(4) | |
["blogname"]=> | |
string(18) "NightmareMode Test" | |
["domain"]=> | |
string(13) "nmm.wpmu1.dev" | |
["path"]=> | |
string(1) "/" | |
["site_id"]=> | |
string(1) "1" | |
["siteurl"]=> | |
string(20) "http://nmm.wpmu1.dev" | |
["archived"]=> | |
int(0) | |
["spam"]=> | |
int(0) | |
["deleted"]=> | |
int(0) | |
} | |
} | |
# var_dump(get_users()); | |
array(1) { | |
[0]=> | |
object(WP_User)#77 (7) { | |
["data"]=> | |
object(stdClass)#89 (12) { | |
["ID"]=> | |
string(1) "1" | |
["user_login"]=> | |
string(6) "aramzs" | |
["user_pass"]=> | |
string(34) "$P$Bc3hMh/RBLecQTYbPK8hnZ6vqICCs9." | |
["user_nicename"]=> | |
string(6) "aramzs" | |
["user_email"]=> | |
string(19) "aramzs@hacktext.com" | |
["user_url"]=> | |
string(0) "" | |
["user_registered"]=> | |
string(19) "2014-03-02 19:01:58" | |
["user_activation_key"]=> | |
string(0) "" | |
["user_status"]=> | |
string(1) "0" | |
["display_name"]=> | |
string(6) "aramzs" | |
["spam"]=> | |
string(1) "0" | |
["deleted"]=> | |
string(1) "0" | |
} | |
["ID"]=> | |
int(1) | |
["caps"]=> | |
array(1) { | |
["administrator"]=> | |
bool(true) | |
} | |
["cap_key"]=> | |
string(15) "wp_capabilities" | |
["roles"]=> | |
array(1) { | |
[0]=> | |
string(13) "administrator" | |
} | |
["allcaps"]=> | |
array(63) { | |
["switch_themes"]=> | |
bool(true) | |
["edit_themes"]=> | |
bool(true) | |
["activate_plugins"]=> | |
bool(true) | |
["edit_plugins"]=> | |
bool(true) | |
["edit_users"]=> | |
bool(true) | |
["edit_files"]=> | |
bool(true) | |
["manage_options"]=> | |
bool(true) | |
["moderate_comments"]=> | |
bool(true) | |
["manage_categories"]=> | |
bool(true) | |
["manage_links"]=> | |
bool(true) | |
["upload_files"]=> | |
bool(true) | |
["import"]=> | |
bool(true) | |
["unfiltered_html"]=> | |
bool(true) | |
["edit_posts"]=> | |
bool(true) | |
["edit_others_posts"]=> | |
bool(true) | |
["edit_published_posts"]=> | |
bool(true) | |
["publish_posts"]=> | |
bool(true) | |
["edit_pages"]=> | |
bool(true) | |
["read"]=> | |
bool(true) | |
["level_10"]=> | |
bool(true) | |
["level_9"]=> | |
bool(true) | |
["level_8"]=> | |
bool(true) | |
["level_7"]=> | |
bool(true) | |
["level_6"]=> | |
bool(true) | |
["level_5"]=> | |
bool(true) | |
["level_4"]=> | |
bool(true) | |
["level_3"]=> | |
bool(true) | |
["level_2"]=> | |
bool(true) | |
["level_1"]=> | |
bool(true) | |
["level_0"]=> | |
bool(true) | |
["edit_others_pages"]=> | |
bool(true) | |
["edit_published_pages"]=> | |
bool(true) | |
["publish_pages"]=> | |
bool(true) | |
["delete_pages"]=> | |
bool(true) | |
["delete_others_pages"]=> | |
bool(true) | |
["delete_published_pages"]=> | |
bool(true) | |
["delete_posts"]=> | |
bool(true) | |
["delete_others_posts"]=> | |
bool(true) | |
["delete_published_posts"]=> | |
bool(true) | |
["delete_private_posts"]=> | |
bool(true) | |
["edit_private_posts"]=> | |
bool(true) | |
["read_private_posts"]=> | |
bool(true) | |
["delete_private_pages"]=> | |
bool(true) | |
["edit_private_pages"]=> | |
bool(true) | |
["read_private_pages"]=> | |
bool(true) | |
["delete_users"]=> | |
bool(true) | |
["create_users"]=> | |
bool(true) | |
["unfiltered_upload"]=> | |
bool(true) | |
["edit_dashboard"]=> | |
bool(true) | |
["update_plugins"]=> | |
bool(true) | |
["delete_plugins"]=> | |
bool(true) | |
["install_plugins"]=> | |
bool(true) | |
["update_themes"]=> | |
bool(true) | |
["install_themes"]=> | |
bool(true) | |
["update_core"]=> | |
bool(true) | |
["list_users"]=> | |
bool(true) | |
["remove_users"]=> | |
bool(true) | |
["add_users"]=> | |
bool(true) | |
["promote_users"]=> | |
bool(true) | |
["edit_theme_options"]=> | |
bool(true) | |
["delete_themes"]=> | |
bool(true) | |
["export"]=> | |
bool(true) | |
["administrator"]=> | |
bool(true) | |
} | |
["filter"]=> | |
NULL | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment