LLMS_Post_Model::get_property_type( string $key )
Get a property’s data type for scrubbing used by $this->scrub() to determine how to scrub the property
Description Description
Parameters Parameters
- $key
-
(string) (Required) property key
Return Return
(string)
Source Source
File: includes/abstracts/abstract.llms.post.model.php
protected function get_property_type( $key ) { $props = $this->get_properties(); // check against the properties array if ( in_array( $key, array_keys( $props ) ) ) { $type = $props[ $key ]; } // End if(). else { $type = 'text'; } return $type; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.3.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: