LLMS_Post_Model::get_property_defaults()
Retrieve the default values for properties
Contents
Return Return
(array)
Source Source
File: includes/abstracts/abstract.llms.post.model.php
public function get_property_defaults() {
/**
* Filters the defaults 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 3.24.0
*
* @param array $property_defaults Array of default property values.
* @param LLMS_Post_Model $llms_post The LLMS_Post_Model instance.
*/
return apply_filters( "llms_get_{$this->model_post_type}_property_defaults", $this->property_defaults, $this );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.24.0 | Introduced. |