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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.5 | Introduced. |