Skip to content

Instantly share code, notes, and snippets.

@peterwilsoncc
Created November 16, 2016 22:12
Show Gist options
  • Save peterwilsoncc/c3b86135c5cc1db49f227408eb4c1f5d to your computer and use it in GitHub Desktop.
Save peterwilsoncc/c3b86135c5cc1db49f227408eb4c1f5d to your computer and use it in GitHub Desktop.
--- 4-6-1.txt
+++ (clipboard)
@@ -1,6 +1,7 @@
-array(20) {
+
+array(22) {
["labels"]=>
- object(stdClass)#128 (21) {
+ object(stdClass)#366 (21) {
["name"]=>
string(10) "Categories"
["singular_name"]=>
@@ -69,24 +70,28 @@
["rewrite"]=>
bool(false)
["query_var"]=>
- bool(false)
+ string(13) "category_name"
["update_count_callback"]=>
string(0) ""
["_builtin"]=>
bool(true)
+ ["show_in_rest"]=>
+ bool(true)
+ ["rest_base"]=>
+ string(10) "categories"
+ ["rest_controller_class"]=>
+ string(24) "WP_REST_Terms_Controller"
["cap"]=>
- object(stdClass)#122 (4) {
+ object(stdClass)#361 (4) {
["manage_terms"]=>
string(17) "manage_categories"
["edit_terms"]=>
- string(17) "manage_categories"
+ string(15) "edit_categories"
["delete_terms"]=>
- string(17) "manage_categories"
+ string(17) "delete_categories"
["assign_terms"]=>
- string(10) "edit_posts"
+ string(17) "assign_categories"
}
- ["name"]=>
- string(8) "category"
["object_type"]=>
array(1) {
[0]=>
@@ -94,4 +99,4 @@
}
["label"]=>
string(10) "Categories"
-}
\ No newline at end of file
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment