Hooks::is_v1_or_blocks( null|string|int $post_id = null )

Sugar function for the above that determines if the labels should be filtered.


Parameters

$post_id

(null|string|int) (Optional) The current post ID.

Default value: null


Top ↑

Return

(boolean)


Top ↑

Source

File: src/Tribe/Views/V2/Hooks.php

	public function is_v1_or_blocks( $post_id = null ) {
		return is_null( $post_id )
				|| ! tribe_events_single_view_v2_is_enabled()
				|| has_blocks( $post_id );
	}

Top ↑

Changelog

Changelog
Version Description
4.6.0 Introduced.