summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/json-endpoints.php')
-rw-r--r--plugins/jetpack/json-endpoints.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/jetpack/json-endpoints.php b/plugins/jetpack/json-endpoints.php
index fd2bff97..c9e4ed81 100644
--- a/plugins/jetpack/json-endpoints.php
+++ b/plugins/jetpack/json-endpoints.php
@@ -2030,6 +2030,7 @@ new WPCOM_JSON_API_Update_Term_Endpoint( array(
'request_format' => array(
'name' => '(string) Name of the term',
'description' => '(string) A description of the term',
+ 'parent' => '(int) The parent ID for the term, if hierarchical',
),
'example_request' => 'https://public-api.wordpress.com/rest/v1/sites/82974409/taxonomies/post_tag/terms/new',
'example_request_data' => array(
@@ -2056,6 +2057,7 @@ new WPCOM_JSON_API_Update_Term_Endpoint( array(
'request_format' => array(
'name' => '(string) Name of the term',
'description' => '(string) A description of the term',
+ 'parent' => '(int) The parent ID for the term, if hierarchical',
),
'example_request' => 'https://public-api.wordpress.com/rest/v1/sites/82974409/taxonomies/post_tag/terms/slug:testing-term',
'example_request_data' => array(
@@ -2498,6 +2500,7 @@ new WPCOM_JSON_API_Site_Settings_Endpoint( array(
'verification_services_codes' => '(array) Website verification codes. Allowed keys: google, pinterest, bing, yandex',
Jetpack_SEO_Utils::FRONT_PAGE_META_OPTION => '(string) The SEO meta description for the site.',
Jetpack_SEO_Titles::TITLE_FORMATS_OPTION => '(array) SEO meta title formats. Allowed keys: front_page, posts, pages, groups, archives',
+ 'api_cache' => '(bool) Turn on/off the Jetpack JSON API cache'
),
@@ -2573,6 +2576,7 @@ new WPCOM_JSON_API_Site_Settings_V1_2_Endpoint( array(
'verification_services_codes' => '(array) Website verification codes. Allowed keys: google, pinterest, bing, yandex',
Jetpack_SEO_Utils::FRONT_PAGE_META_OPTION => '(string) The SEO meta description for the site.',
Jetpack_SEO_Titles::TITLE_FORMATS_OPTION => '(array) SEO meta title formats. Allowed keys: front_page, posts, pages, groups, archives',
+ 'api_cache' => '(bool) Turn on/off the Jetpack JSON API cache'
),
'response_format' => array(
@@ -2716,7 +2720,7 @@ new WPCOM_JSON_API_Update_Sharing_Button_Endpoint( array(
),
'request_format' => array(
'name' => '(string) The name for your custom sharing button, used as a label on the button itself',
- 'URL' => '(string) The URL to use for share links, including optional placeholders (%post_title%, %post_url%, %post_full_url%, %post_excerpt%, %post_tags%)',
+ 'URL' => '(string) The URL to use for share links, including optional placeholders (%post_id%, %post_title%, %post_slug%, %post_url%, %post_full_url%, %post_excerpt%, %post_tags%, %home_url%)',
'icon' => '(string) The full URL to a 16x16 icon to display on the sharing button',
'enabled' => '(bool) Is the button currently enabled for the site?',
'visibility' => '(string) If enabled, the visibility of the sharing button, either "visible" (default) or "hidden"',