WordPress中文开发手册

  1. Home
  2. Docs
  3. WordPress中文开发手册
  4. WordPress REST API手册
  5. 资源
  6. 设置

设置

Schema

模式定义了设置对象存在的所有字段。

title

string
Site title.

Context:

description

string
Site description.

Context:

url

string,
uri
Site URL.

Context:

email

string,
email
This address is used for admin purposes. If you change this we will send you an email at your new address to confirm it. The new address will not become active until confirmed.

Context:

timezone

string
A city in the same timezone as you.

Context:

date_format

string
A date format for all date strings.

Context:

time_format

string
A time format for all time strings.

Context:

start_of_week

number
A day number of the week that the week should start on.

Context:

language

string
WordPress locale code.

Context:

use_smilies

boolean
Convert emoticons like 🙂 and 😛 to graphics on display.

Context:

default_category

number
Default category.

Context:

default_post_format

string
Default post format.

Context:

posts_per_page

number
Blog pages show at most.

Context:

Example Request

$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json/wp/v2/settings

Top ↑

Update a Setting

##Arguments

title

Site title.

description

Site description.

url

Site URL.

email

This address is used for admin purposes. If you change this we will send you an email at your new address to confirm it. The new address will not become active until confirmed.

timezone

A city in the same timezone as you.

date_format

A date format for all date strings.

time_format

A time format for all time strings.

start_of_week

A day number of the week that the week should start on.

language

WordPress locale code.

use_smilies

Convert emoticons like 🙂 and 😛 to graphics on display.

default_category

Default category.

default_post_format

Default post format.

posts_per_page

Blog pages show at most.