GF_SUBFORM::gform_submit( $entry,  $form )

Validation function when the trigger action is hit


Parameters Parameters

$entry

(Required)

$form

(Required)


Source Source

File: src/integrations/gravity-forms/triggers/gf-subform.php

	public function gform_submit( $entry, $form ) {



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

		$user_id = get_current_user_id();

		$args = [
			'code'    => $this->trigger_code,
			'meta'    => $this->trigger_meta,
			'post_id' => $form['id'],
			'user_id' => $user_id,
		];

		Automator()->maybe_add_trigger_entry( $args );
	}