disable_on_cpts( boolean $is_enabled, string $post_type )

Disables the Gutenberg editor on specific custom post types.


Description Description

Fires on use_block_editor_for_post_type and gutenberg_can_edit_post_type hook.


Parameters Parameters

$is_enabled

(Required) Whether the Gutenberg editor is enabled or not.

$post_type

(Required) Current post type slug.


Top ↑

Return Return

(boolean) Returns true to enable Gutenberg editor otherwise false.


Top ↑

Source Source

File: includes/admin/ld-gutenberg.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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