Tribe__Events__Linked_Posts::handle_submission( int $event_id, array $submission )

Detects linked post type data within a form submission and executes the post type-specific handlers


Parameters

$event_id

(int) (Required) Submitted Event ID

$submission

(array) (Required) Submitted form data


Top ↑

Source

File: src/Tribe/Linked_Posts.php

	public function handle_submission( $event_id, $submission ) {
		$linked_post_types = $this->get_linked_post_types();

		foreach ( $linked_post_types as $linked_post_type => $linked_post_type_data ) {
			$linked_post_type_data = $this->get_linked_post_type_data( $submission, $linked_post_type );
			$this->handle_submission_by_post_type( $event_id, $linked_post_type, $linked_post_type_data );
		}
	}

Top ↑

Changelog

Changelog
Version Description
4.2 Introduced.