LLMS_Admin_Post_Types::use_block_editor_for_post( boolean $use_block_editor, WP_Post $post )

Disables the block editor for legacy certificates.

Parameters Parameters


(boolean) (Required) Whether or not to use the block editor.


(WP_Post) (Required) Post object.

Top ↑

Return Return


Top ↑

Source Source

File: includes/admin/class.llms.admin.post-types.php

	public function use_block_editor_for_post( $use_block_editor, $post ) {
		$cert = llms_get_certificate( $post, true );
		if ( $cert && 1 === $cert->get_template_version() ) {
			$use_block_editor = false;

		return $use_block_editor;


Top ↑

Changelog Changelog

Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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