zoukankan      html  css  js  c++  java
  • 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.
  • 相关阅读:
    类的定义
    面向对象与面向过程介绍
    跨目录导入模块
    正则表达式re模块
    常用工具包(模块)
    生成器generator
    闭包
    命名空间name space
    函数的递归
    POJ1062
  • 原文地址:https://www.cnblogs.com/fengidri/p/2757501.html
Copyright © 2011-2022 走看看