Tribe__Editor::is_classic_option_active()
Check if the setting 'classic-editor-replace' is set to replace that option means to replace the gutenberg editor with the classic editor.
Prior to 1.3 on classic editor plugin the value to identify if is on classic the value was replace, now the value is classic
Return
(bool)
Source
File: src/Tribe/Editor.php
public function is_classic_option_active() {
$valid_values = array( 'replace', 'classic' );
return in_array( (string) get_option( 'classic-editor-replace' ), $valid_values, true );
}
Changelog
| Version | Description |
|---|---|
| 4.8 | Introduced. |