Noptin_Elementor_Forms_Integration::run( ElementorProModulesFormsClassesForm_Record $record, ElementorProModulesFormsClassesAjax_Handler $ajax_handler )

Run


Description Description

Runs the action after submit


Top ↑

Parameters Parameters

$record

(ElementorProModulesFormsClassesForm_Record) (Required)

$ajax_handler

(ElementorProModulesFormsClassesAjax_Handler) (Required)


Top ↑

Source Source

File: includes/integrations/class-noptin-elementor-forms-integration.php

	public function run( $record, $ajax_handler ) {

		// Prepare subscriber.
		$subscriber = $this->map_fields( $record );

		//  Make sure that we have an email field.
		if ( empty( $subscriber['email'] ) ) {
			return;
		}

		/**
		 * Filters subscriber details when adding a new subscriber via elementor forms.
		 *
		 * @since 1.3.1
		 */
		$subscriber = apply_filters( 'noptin_elementor_forms_subscriber_details', $subscriber, $record, $ajax_handler );

		add_noptin_subscriber( wp_unslash( $subscriber ) );
	}


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