LLMS_Post_Model::scrub( string $key, mixed $val )

Scrub field according to it’s type This is automatically called by set() method before anything is actually set


Description Description


Parameters Parameters

$key

(string) (Required) property key

$val

(mixed) (Required) property value


Top ↑

Return Return

(mixed)


Top ↑

Source Source

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

	protected function scrub( $key, $val ) {

		$type = apply_filters( 'llms_get_' . $this->model_post_type . '_property_type', $this->get_property_type( $key ), $this );

		return apply_filters( 'llms_scrub_' . $this->model_post_type . '_field_' . $key, $this->scrub_field( $val, $type ), $this, $key, $val );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: