Atitit cms wordpress get_post  返回的WP_Post 规范 标准化

Atitit cms wordpress get_post  返回的WP_Post 规范 标准化

public $ID;

public $post_author = 0;

* The post‘s local publication time.

public $post_date = ‘0000-00-00 00:00:00‘;

* The post‘s GMT publication time.

public $post_date_gmt = ‘0000-00-00 00:00:00‘;

public $post_content = ‘‘;

public $post_title = ‘‘;

public $post_excerpt = ‘‘;

public $post_status = ‘publish‘;

public $comment_status = ‘open‘;

public $ping_status = ‘open‘;

public $post_password = ‘‘;

public $post_name = ‘‘;

public $to_ping = ‘‘;

public $pinged = ‘‘;

public $post_modified = ‘0000-00-00 00:00:00‘;

public $post_modified_gmt = ‘0000-00-00 00:00:00‘;

public $post_content_filtered = ‘‘;

public $post_parent = 0;

public $guid = ‘‘;

public $menu_order = 0;

public $post_type = ‘post‘;

public $post_mime_type = ‘‘;

public $comment_count = 0;

public $filter;

final class WP_Post {

/**

* Post ID.

*

* @var int

*/

public $ID;

/**

* ID of post author.

*

* A numeric string, for compatibility reasons.

*

* @var string

*/

public $post_author = 0;

/**

* The post‘s local publication time.

*

* @var string

*/

public $post_date = ‘0000-00-00 00:00:00‘;

/**

* The post‘s GMT publication time.

*

* @var string

*/

public $post_date_gmt = ‘0000-00-00 00:00:00‘;

/**

* The post‘s content.

*

* @var string

*/

public $post_content = ‘‘;

/**

* The post‘s title.

*

* @var string

*/

public $post_title = ‘‘;

/**

* The post‘s excerpt.

*

* @var string

*/

public $post_excerpt = ‘‘;

/**

* The post‘s status.

*

* @var string

*/

public $post_status = ‘publish‘;

/**

* Whether comments are allowed.

*

* @var string

*/

public $comment_status = ‘open‘;

/**

* Whether pings are allowed.

*

* @var string

*/

public $ping_status = ‘open‘;

/**

* The post‘s password in plain text.

*

* @var string

*/

public $post_password = ‘‘;

/**

* The post‘s slug.

*

* @var string

*/

public $post_name = ‘‘;

/**

* URLs queued to be pinged.

*

* @var string

*/

public $to_ping = ‘‘;

/**

* URLs that have been pinged.

*

* @var string

*/

public $pinged = ‘‘;

/**

* The post‘s local modified time.

*

* @var string

*/

public $post_modified = ‘0000-00-00 00:00:00‘;

/**

* The post‘s GMT modified time.

*

* @var string

*/

public $post_modified_gmt = ‘0000-00-00 00:00:00‘;

/**

* A utility DB field for post content.

*

*

* @var string

*/

public $post_content_filtered = ‘‘;

/**

* ID of a post‘s parent post.

*

* @var int

*/

public $post_parent = 0;

/**

* The unique identifier for a post, not necessarily a URL, used as the feed GUID.

*

* @var string

*/

public $guid = ‘‘;

/**

* A field used for ordering posts.

*

* @var int

*/

public $menu_order = 0;

/**

* The post‘s type, like post or page.

*

* @var string

*/

public $post_type = ‘post‘;

/**

* An attachment‘s mime type.

*

* @var string

*/

public $post_mime_type = ‘‘;

/**

* Cached comment count.

*

* A numeric string, for compatibility reasons.

*

* @var string

*/

public $comment_count = 0;

/**

* Stores the post object‘s sanitization level.

*

* Does not correspond to a DB field.

*

* @var string

*/

public $filter;

/**

* Retrieve WP_Post instance.

*

* @static

* @access public

*

* @global wpdb $wpdb WordPress database abstraction object.

*

* @param int $post_id Post ID.

* @return WP_Post|false Post object, false otherwise.

作者:: 绰号:老哇的爪子 ( 全名::Attilax Akbar Al Rapanui 阿提拉克斯 阿克巴 阿尔 拉帕努伊 )

汉字名:艾提拉(艾龙),   EMAIL:[email protected]

转载请注明来源: http://www.cnblogs.com/attilax/

Atiend

时间: 2025-01-03 17:58:51

Atitit cms wordpress get_post  返回的WP_Post 规范 标准化的相关文章

Atitit usrQBK1600 技术文档的规范标准化解决方案

1.1. Keyword关键词..展关键词,横向拓展比较,纵向抽象细化拓展知识点1 1.2. 标题必须有高大上词汇,参考文章排行榜,1 1.3. 标题带语言关键词c#.net js javascript  c++ python1 1.4. 标题最好有英文版本的,方便英文查询1 1.5. 标题atitit前缀,attilax总结结尾方便查询1 1.6. 标题后面带上版本号v2 qbf等,方便时间对比1 1.7. 正文要求 修辞好(引用典故名句,成语 等,使用修辞方法)2 1.8. 引用寓言故事 类

Atitit 我们的devops战略与规划 规范 推荐标准

Atitit 我们的devops战略与规划 规范 推荐标准 1. Vm容器化1 2. 热部署tomcat+jrebel 或者resin1 3. 增量更新与差异更新1 4. 补丁提取与应用2 为了方便提升部署友好性,所以搞了个devops 1. Vm容器化 Java项目,和jdk,web server整合到一个文件夹下,使用相对路径..作为一个容器可以整体发布. 2. 热部署tomcat+jrebel 或者resin 3. 增量更新与差异更新 部署项目的时候,初次可以打个war(其实就是zip包)

Atitit.自定义存储引擎的接口设计 api 标准化 attilax 总结  mysql

Atitit.自定义存储引擎的接口设计 api 标准化 attilax 总结  mysql 1. 图16.1:MySQL体系结构1 2. 16.7. 创建表create()虚拟函数:2 3. 16.8. 打开表 open()2 4. ---------------------------------------------------------------------------------------------------------------------2 5. 16.9. 实施基本的

Atitit 常用sdk 模块 组织架构切分 规范与范例attilax总结

常用200个模块 2017/04/12  22:01    <DIR>          acc 2017/04/12  22:01    <DIR>          agent 2017/04/12  22:01    <DIR>          agt 2017/04/12  22:01    <DIR>          agtCommiss 2017/04/12  22:01    <DIR>          agtNrechg 2

Atitit 发帖机实现(4 )- usbQBM1601 gui操作标准化规范与解决方案attilax总结

1.1. 根据gui的类型使用不同的gui调用api1 1.2. Script化1 1.3. 同步化1 1.4. webdriver标准化1 1.5. Dom的jq标准化1 1.6. 控件的选取优先使用id,其次name属性css选择器,然后val属性等.2 1.7. 界面的跳转,使用win.localtion即可2 1.8. 参考资料2 1.1. 根据gui的类型使用不同的gui调用api Bs的使用webdriver标准化不错的.Cs的使用win控件体系的.自绘界面的需要使用独占式的基于图片

Atitit vod ver 12 new feature v12 pb2 影吧 视频 电影 点播 播放系统v12新特性

项目分离从独立的se ver Run mode from brow ex to self web ..for handy to dbg .. Kiosk模式支持 Ajax是最新dsl解析器 重构部分cms api分离. 要不要使用独立的api ,还是使用cms wordpress的api把.. 三大api ,cate list, single post ,post intro., 搜索api Atitit.播放系统的新规划  v13 New folder base dbms Fulltxt qu

32、Flask实战第32天:优化json数据的返回

接着上节,我们通过jsonify返回json数据非常方便 ... return jsonify({"code": 400, "message": message}) 返回什么数据则是公司接口编写的规范 返回值的规范(就算值为空,我们也必须返回以下字段) { "code": 200, #状态码 "message": "", #信息提示 "data": {}, #返回的数据,比如文章列表等等

WordPress函数wp_page_menu详解

说明 该标签显示带有链接的WordPress页面列表,并且可以选择将 Home(主页)自动显示为列表中的一员.该标签是自定义侧边栏和标题栏的好帮手,同时还可以用在其它模板中. WordPress教程 用法  <?php wp_page_menu( $args ); ?> 默认用法 <?php $args = array(            'depth'       => 0,    'sort_column' => 'menu_order, post_title',  

java高级规范

一:不允许使用汉语拼音命名(类,接口,包,常量,全局变量,局部变量,临时变量,方法名) 欠规范代码示例: public void zengJiaYongHu(){} 拼音方法名称 规范代码示例: public void addUser(){} 解析:应当使用国际化语言,拼音使得代码难懂 二:Package名必须全部小写,尽量使用单个单词 欠规范代码示例: com.lxit.daoImpl 单词大写了,daoImpl多个单词 规范代码示例: com.lxit.dao.impl 解析:这是一个大家都