wp.newPage

==================== wp.newPage Create a new page. Added in WordPress 2.2. Parameters int blog_id string username string password string title string description: Page content. datetime dateCreated datetime date_created_gmt: If specified, takes precedence over dateCreated. array categories: Names of categories assigned to the page. array mt_keywords: Names of tags assigned to the page. string mt_excerpt string mt_text_more: Post "Read more" text. string mt_allow_comments: "open" or "closed" string mt_allow_pings: "open" or "closed" string wp_slug string wp_password string wp_author_id string wp_author_display_name string page_status array custom_fields (Added in WordPress 2.3.2) struct string id: Optional. string key string value struct enclosure: Only set if page has an enclosure. (Added in WordPress 2.6.3) string url int length string type bool publish: Whether to publish the page upon creation or leave it as a draft. Return Values int page_id Errors 401 If the user does not have the edit_pages cap.
原文地址:https://www.cnblogs.com/fengidri/p/2757501.html