Noptin_Form::__set( string $key, mixed $value )
Magic method for setting custom form fields.
Description Description
This method does not update custom fields in the database. It only stores the value on the Noptin_Form instance.
Parameters Parameters
- $key
(string) (Required) The key to set.
- $value
(mixed) (Required) The new value for the key.
Source Source
File: includes/class-noptin-form.php
public function __set( $key, $value ) { if ( 'id' === strtolower( $key ) ) { $this->id = $value; $this->data['id'] = $value; return; } $this->data[ $key ] = $value; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.5 | Introduced. |