LLMS_Post_Model::get_post_properties()

Retrieve an array of post properties


Description Description

These properties need to be get/set with alternate methods.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.post.model.php

920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
protected function get_post_properties() {
    /**
     * Filters the properties of the model that are properties of WP_Post.
     *
     * @since Unknown
     *
     * @param array           $post_properties Associative array of the type $post_property_name => type.
     * @param LLMS_Post_Model $llms_post       The LLMS_Post_Model instance.
     */
    return apply_filters(
        'llms_post_model_get_post_properties',
        array(
            'author'         => 'absint',
            'content'        => 'html',
            'date'           => 'text',
            'date_gmt'       => 'text',
            'excerpt'        => 'html',
            'password'       => 'text',
            'parent'         => 'absint',
            'menu_order'     => 'absint',
            'modified'       => 'text',
            'modified_gmt'   => 'text',
            'name'           => 'text',
            'status'         => 'text',
            'title'          => 'text',
            'type'           => 'text',
            'comment_status' => 'text',
            'ping_status'    => 'text',
        ),
        $this
    );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.34.0 Add date and modified dates GMT version, comment and ping status, post password and menu_order.
3.31.0 Treat excerpts as HTML instead of plain text.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.