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


Top ↑

Return Return

(string)


Top ↑

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;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: