acf_admin_field_group::use_block_editor_for_post_type()
Prevents the block editor from loading when editing an ACF field group.
Метод класса: acf_admin_field_group{}
Хуков нет.
Возвращает
true|false
.
Использование
$acf_admin_field_group = new acf_admin_field_group(); $acf_admin_field_group->use_block_editor_for_post_type( $use_block_editor, $post_type );
- $use_block_editor(true|false) (обязательный)
- Whether the post type can be edited or not.
По умолчанию: true - $post_type(строка) (обязательный)
- The post type being checked.
Список изменений
С версии 5.8.0 | Введена. |
Код acf_admin_field_group::use_block_editor_for_post_type() acf admin field group::use block editor for post type ACF 6.0.4
public function use_block_editor_for_post_type( $use_block_editor, $post_type ) { if ( $post_type === 'acf-field-group' ) { return false; } return $use_block_editor; }