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.

Top ↑

Parameters Parameters


(string) (Required) The key to set.


(mixed) (Required) The new value for the key.

Top ↑

Source Source

File: includes/class-noptin-form.php

	public function __set( $key, $value ) {

		if ( 'id' === strtolower( $key ) ) {

			$this->id         = $value;
			$this->data['id'] = $value;


		$this->data[ $key ] = $value;


Top ↑

Changelog Changelog


Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation