Hooks::is_v1_or_blocks( null|string|int $post_id = null )
Sugar function for the above that determines if the labels should be filtered.
Contents
Parameters
- $post_id
-
(null|string|int) (Optional) The current post ID.
Default value: null
Return
(boolean)
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 ); }
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |