Noptin_Form::__isset( string $key )

Magic method for checking the existence of a certain custom field.


Parameters Parameters

$key

(string) (Required) The key to check for.


Top ↑

Return Return

(bool) Whether the given form field is set.


Top ↑

Source Source

File: includes/class-noptin-form.php

	public function __isset( $key ) {

		if ( 'id' === strtolower( $key ) ) {
			return null !== $this->id;
		}
		return isset( $this->data[ $key ] ) && null !== $this->data[ $key ];

	}

Top ↑

Changelog Changelog

Changelog
VersionDescription
1.0.5Introduced.

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