Noptin_Form::__get( string $key )
Magic method for accessing custom fields.
Parameters Parameters
- $key
(string) (Required) form property to retrieve.
Return Return
(mixed) Value of the given form property
Source Source
File: includes/class-noptin-form.php
public function __get( $key ) { if ( 'id' === strtolower( $key ) ) { return apply_filters( 'noptin_form_id', $this->id, $this ); } if ( isset( $this->data[ $key ] ) ) { $value = $this->data[ $key ]; } else { $value = null; } return apply_filters( "noptin_form_{$key}", $value, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.5 | Introduced. |