模块编辑block edito界面怎么添加和前端一样的样式

/**
 * Enqueue block styles for both front-end and editor.
 */
function my_block_enqueue_styles() {
    // Frontend and editor shared styles
    wp_register_style(
        'my-block-style',
        get_template_directory_uri() . '/assets/css/plugins.css',
        array(),
        '1.0.0'
    );

    // Frontend
    wp_enqueue_style('my-block-style');
}
add_action('enqueue_block_assets', 'my_block_enqueue_styles');
×
模块编辑block edito界面怎么添加和前端一样的样式

模块编辑block edito界面怎么添加和前端一样的样式

/** * Enqueue block ...