Tribe__Events__Pro__Editor__Meta::split_series_link( $url,  $post_id )

Redirect to classic editor if the event does not have any block on it


Parameters

$url

(Required)

$post_id

(Required)


Top ↑

Return

(mixed)


Top ↑

Source

File: src/Tribe/Editor/Meta.php

	public function split_series_link( $url, $post_id ) {
		$args = array();
		if ( ! has_blocks( absint( $post_id ) ) ) {
			$args = array( 'classic-editor' => '' );
		}

		return add_query_arg( $args, $url );
	}

Top ↑

Changelog

Changelog
Version Description
4.5 Introduced.