get_default_block_editor_settings example


function get_block_editor_settings( array $custom_settings$block_editor_context ) {
    $editor_settings = array_merge(
        get_default_block_editor_settings(),
        array(
            'allowedBlockTypes' => get_allowed_block_types( $block_editor_context ),
            'blockCategories'   => get_block_categories( $block_editor_context ),
        ),
        $custom_settings
    );

    $global_styles = array();
    $presets       = array(
        array(
            'css'            => 'variables',
            
Home | Imprint | This part of the site doesn't use cookies.