LLMS_Post_Model::get_unsettable_properties()

Array of properties which *cannot* be set


Description Description

If a child class adds any properties which should not be settable the class should override this property and add their custom properties to the array.


Top ↑

Return Return

(array)


Top ↑

Source Source

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

1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
protected function get_unsettable_properties() {
    /**
     * Filters the properties of the model that *cannot* be set
     *
     * @since Unknown
     *
     * @param array           $unsettable_properties Array of property names.
     * @param LLMS_Post_Model $llms_post             The LLMS_Post_Model instance.
     */
    return apply_filters(
        'llms_post_model_get_unsettable_properties',
        array(
            'db_post_type',
            'id',
            'meta_prefix',
            'model_post_type',
            'post',
        ),
        $this
    );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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