use_block_editor_for_post_type

Advertisement

Summery Summery

Filter whether a post is able to be edited in the block editor.

Syntax Syntax

apply_filters( 'use_block_editor_for_post_type', bool $use_block_editor, string $post_type )

Parameters Parameters

$use_block_editor

Whether the post type can be edited or not. Default true.

$post_type

The post type being checked.

Source Source

File: wp-admin/includes/post.php

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply