wp_enqueue_block_style


wp_enqueue_block_style ( $block_name, $args )

Parameters:
  • (string) block_name The block-name, including namespace.
  • (array) args An array of arguments [handle,src,deps,ver,media].
Returns:
  • (void)
Defined at:

Description

Enqueue a stylesheet for a specific block.If the theme has opted-in to separate-styles loading, then the stylesheet will be enqueued on-render, otherwise when the block inits.

Related Functions

wp_enqueue_style, wp_enqueue_global_styles, wp_dequeue_style, enqueue_block_styles_assets, _wp_multiple_block_styles

Top Google Results

User discussions

wpseek mobile