Noptin_Contact_Form_7::save_settings( WPCF7_ContactForm $contact_form )

Saves contact form settings.


Parameters Parameters

$contact_form

(WPCF7_ContactForm) (Required) The contact form being edited.


Top ↑

Source Source

File: includes/integrations/class-noptin-contact-form-7.php

    public function save_settings( $contact_form ) {

        if ( empty( $_POST ) ) {
			return;
		}

        $post_id = $contact_form->id();

        update_post_meta( $post_id, 'noptin_settings', noptin_clean( wp_unslash( $_POST['noptin_settings'] ) ) );
	}


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