Tribe__Tickets__Editor__Template__Overwrite::has_classic_editor( $post_id )
Return if the classic editor is active on the post.
Contents
Parameters
- $post_id
-
(Required)
Return
(bool)
Source
File: src/Tribe/Editor/Template/Overwrite.php
public function has_classic_editor( $post_id ) {
$is_event = function_exists( 'tribe_is_event' ) && tribe_is_event( $post_id );
if ( $is_event && $this->has_early_access_to_blocks() ) {
return false;
}
/** @var Tribe__Editor $editor */
$editor = tribe( 'editor' );
return $editor->is_classic_editor();
}
Changelog
| Version | Description |
|---|---|
| 4.9.2 | Introduced. |