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
Return Return
(mixed)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: