LLMS_Post_Model::get_properties()

Retrieve an array of properties defined by the model


Return Return

(array)


Top ↑

Source Source

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

961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
public function get_properties() {
    $props = array_merge( $this->get_post_properties(), $this->properties );
    /**
     * Filters the llms post properties
     *
     * The dynamic portion of this hook, `$this->model_post_type`, refers to the model's post type. For example "course",
     * "lesson", "membership", etc...
     *
     * @since Unknown
     *
     * @param array           $properties Array of properties defined by the model
     * @param LLMS_Post_Model $llms_post  The LLMS_Post_Model instance.
     */
    return apply_filters( "llms_get_{$this->model_post_type}_properties", $props, $this );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.0
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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