zoukankan      html  css  js  c++  java
  • 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:1466519819@qq.com

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

    Atiend

     

  • 相关阅读:
    [转载]ExtJs4 笔记(7) Ext.tip.ToolTip 提示
    [转载]ExtJs4 笔记(9) Ext.Panel 面板控件、 Ext.window.Window 窗口控件、 Ext.container.Viewport 布局控件
    [转载]ExtJs4 笔记(8) Ext.slider 滚轴控件、 Ext.ProgressBar 进度条控件、 Ext.Editor 编辑控件
    [转载]ExtJs4 笔记(6) Ext.MessageBox 消息对话框
    [转载]ExtJs4 笔记(5) Ext.Button 按钮
    vue 弹窗时 监听手机返回键关闭弹窗(页面不跳转)
    git打tag
    vue,element列表大数据卡顿问题,vue列表渲染慢,element表格渲染慢,表格渲染慢(卡),表格全选卡,使用umy-ui
    使用Git,从码云上clone项目到本地,修改完之后提交
    wpf 中 Ellipse 对象对动画性能的影响
  • 原文地址:https://www.cnblogs.com/attilax/p/6082739.html
Copyright © 2011-2022 走看看