Noptin_Form::save( $status = false )

Saves the current form to the database


Source Source

File: includes/class-noptin-form.php

	public function save( $status = false ) {

		if ( isset( $this->id ) ) {
			$id = $this->update( $status );
		} else {
			$id = $this->create( $status );
		}

		if ( is_wp_error( $id ) ) {
			return $id;
		}

		// Update the cache with our new data.
		wp_cache_delete( $id, 'noptin_forms' );
		wp_cache_add( $id, $this->data, 'noptin_forms' );
		return true;
	}


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