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.


Top ↑

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.


Top ↑

Return Return

(boolean)


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.