LLMS_Post_Model::get_default_value( string $key )
Get the default value of a property
Description Description
If defaults don’t exist returns an empty string in accordance with the return of get_post_meta() when no metadata exists.
Parameters Parameters
- $key
-
(string) (Required) Property key/name.
Return Return
(mixed)
Source Source
File: includes/abstracts/abstract.llms.post.model.php
public function get_default_value( $key ) { $defaults = $this->get_property_defaults(); return isset( $defaults[ $key ] ) ? $defaults[ $key ] : ''; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.24.0 | Introduced. |