Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
--- 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
You can’t perform that action at this time.