LLMS_Forms_Classic_Editor::force_block_editor( boolean $use_block_editor, string $post_type )
Force the block editor to be used for forms post type editing
Description Description
The classic editor uses this filter (at priority 100) to disable the block editor when the default editor for all users is the classic editor and users are not allowed to switch editors.
Parameters Parameters
- $use_block_editor
-
(boolean) (Required) Whether or not to use the block editor for the post type.
- $post_type
-
(string) (Required) The post type being checked.
Return Return
(boolean)
Source Source
File: includes/forms/class-llms-forms-classic-editor.php
public static function force_block_editor( $use_block_editor, $post_type ) { return LLMS_Forms::instance()->get_post_type() === $post_type ? true : $use_block_editor; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |