Instantly share code, notes, and snippets.
Last active
December 31, 2015 16:09
-
Star
1
(1)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
-
Save AramZS/8011757 to your computer and use it in GitHub Desktop.
WordPress Objects
This file contains hidden or 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 | |
| /** | |
| * Tag | |
| object(stdClass)#427 (9) { | |
| ["term_id"]=> | |
| string(2) "18" | |
| ["name"]=> | |
| string(4) "test" | |
| ["slug"]=> | |
| string(4) "test" | |
| ["term_group"]=> | |
| string(1) "0" | |
| ["term_taxonomy_id"]=> | |
| string(2) "18" | |
| ["taxonomy"]=> | |
| string(8) "post_tag" | |
| ["description"]=> | |
| string(0) "" | |
| ["parent"]=> | |
| string(1) "0" | |
| ["count"]=> | |
| string(1) "1" | |
| } | |
| * Category | |
| object(stdClass)#437 (15) { | |
| ["term_id"]=> | |
| &string(2) "19" | |
| ["name"]=> | |
| &string(5) "Test3" | |
| ["slug"]=> | |
| &string(5) "test3" | |
| ["term_group"]=> | |
| string(1) "0" | |
| ["term_taxonomy_id"]=> | |
| string(2) "19" | |
| ["taxonomy"]=> | |
| string(8) "category" | |
| ["description"]=> | |
| &string(0) "" | |
| ["parent"]=> | |
| &string(1) "0" | |
| ["count"]=> | |
| &string(1) "1" | |
| ["cat_ID"]=> | |
| &string(2) "19" | |
| ["category_count"]=> | |
| &string(1) "1" | |
| ["category_description"]=> | |
| &string(0) "" | |
| ["cat_name"]=> | |
| &string(5) "Test3" | |
| ["category_nicename"]=> | |
| &string(5) "test3" | |
| ["category_parent"]=> | |
| &string(1) "0" | |
| } | |
| * Post | |
| object(WP_Post)#439 (25) { | |
| ["ID"]=> | |
| int(6680) | |
| ["post_author"]=> | |
| string(1) "1" | |
| ["post_date"]=> | |
| string(19) "2013-03-26 21:51:38" | |
| ["post_date_gmt"]=> | |
| string(19) "2013-03-26 21:51:38" | |
| ["post_content"]=> | |
| string(8) "testtttt" | |
| ["post_title"]=> | |
| string(10) "Testtttttt" | |
| ["post_excerpt"]=> | |
| string(0) "" | |
| ["post_status"]=> | |
| string(7) "publish" | |
| ["comment_status"]=> | |
| string(4) "open" | |
| ["ping_status"]=> | |
| string(4) "open" | |
| ["post_password"]=> | |
| string(0) "" | |
| ["post_name"]=> | |
| string(10) "testtttttt" | |
| ["to_ping"]=> | |
| string(0) "" | |
| ["pinged"]=> | |
| string(0) "" | |
| ["post_modified"]=> | |
| string(19) "2013-12-17 20:02:09" | |
| ["post_modified_gmt"]=> | |
| string(19) "2013-12-17 20:02:09" | |
| ["post_content_filtered"]=> | |
| string(0) "" | |
| ["post_parent"]=> | |
| int(0) | |
| ["guid"]=> | |
| string(45) "http://localhost:8080/xampp/wordpress/?p=6680" | |
| ["menu_order"]=> | |
| int(0) | |
| ["post_type"]=> | |
| string(4) "post" | |
| ["post_mime_type"]=> | |
| string(0) "" | |
| ["comment_count"]=> | |
| string(1) "0" | |
| ["filter"]=> | |
| string(3) "raw" | |
| ["format_content"]=> | |
| NULL | |
| } | |
| # Defined post_type object | |
| array(9) { | |
| ["post"]=> | |
| object(stdClass)#485 (26) { | |
| ["labels"]=> | |
| object(stdClass)#483 (14) { | |
| ["name"]=> | |
| string(5) "Posts" | |
| ["singular_name"]=> | |
| string(4) "Post" | |
| ["add_new"]=> | |
| string(7) "Add New" | |
| ["add_new_item"]=> | |
| string(12) "Add New Post" | |
| ["edit_item"]=> | |
| string(9) "Edit Post" | |
| ["new_item"]=> | |
| string(8) "New Post" | |
| ["view_item"]=> | |
| string(9) "View Post" | |
| ["search_items"]=> | |
| string(12) "Search Posts" | |
| ["not_found"]=> | |
| string(15) "No posts found." | |
| ["not_found_in_trash"]=> | |
| string(24) "No posts found in Trash." | |
| ["parent_item_colon"]=> | |
| NULL | |
| ["all_items"]=> | |
| string(9) "All Posts" | |
| ["menu_name"]=> | |
| string(5) "Posts" | |
| ["name_admin_bar"]=> | |
| string(4) "Post" | |
| } | |
| ["description"]=> | |
| string(0) "" | |
| ["publicly_queryable"]=> | |
| bool(true) | |
| ["exclude_from_search"]=> | |
| bool(false) | |
| ["capability_type"]=> | |
| string(4) "post" | |
| ["map_meta_cap"]=> | |
| bool(true) | |
| ["_builtin"]=> | |
| bool(true) | |
| ["_edit_link"]=> | |
| string(16) "post.php?post=%d" | |
| ["hierarchical"]=> | |
| bool(false) | |
| ["public"]=> | |
| bool(true) | |
| ["rewrite"]=> | |
| bool(false) | |
| ["has_archive"]=> | |
| bool(false) | |
| ["query_var"]=> | |
| bool(false) | |
| ["register_meta_box_cb"]=> | |
| NULL | |
| ["taxonomies"]=> | |
| array(0) { | |
| } | |
| ["show_ui"]=> | |
| bool(true) | |
| ["menu_position"]=> | |
| NULL | |
| ["menu_icon"]=> | |
| NULL | |
| ["can_export"]=> | |
| bool(true) | |
| ["show_in_nav_menus"]=> | |
| bool(true) | |
| ["show_in_menu"]=> | |
| bool(true) | |
| ["show_in_admin_bar"]=> | |
| bool(true) | |
| ["delete_with_user"]=> | |
| bool(true) | |
| ["name"]=> | |
| string(4) "post" | |
| ["cap"]=> | |
| object(stdClass)#484 (15) { | |
| ["edit_post"]=> | |
| string(9) "edit_post" | |
| ["read_post"]=> | |
| string(9) "read_post" | |
| ["delete_post"]=> | |
| string(11) "delete_post" | |
| ["edit_posts"]=> | |
| string(10) "edit_posts" | |
| ["edit_others_posts"]=> | |
| string(17) "edit_others_posts" | |
| ["publish_posts"]=> | |
| string(13) "publish_posts" | |
| ["read_private_posts"]=> | |
| string(18) "read_private_posts" | |
| ["read"]=> | |
| string(4) "read" | |
| ["delete_posts"]=> | |
| string(12) "delete_posts" | |
| ["delete_private_posts"]=> | |
| string(20) "delete_private_posts" | |
| ["delete_published_posts"]=> | |
| string(22) "delete_published_posts" | |
| ["delete_others_posts"]=> | |
| string(19) "delete_others_posts" | |
| ["edit_private_posts"]=> | |
| string(18) "edit_private_posts" | |
| ["edit_published_posts"]=> | |
| string(20) "edit_published_posts" | |
| ["create_posts"]=> | |
| string(10) "edit_posts" | |
| } | |
| ["label"]=> | |
| string(5) "Posts" | |
| } | |
| **/ | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment