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].
Defined at:

Description

Enqueues 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_block_support_styles, wp_enqueue_global_styles, wp_dequeue_style, enqueue_block_styles_assets

Top Google Results

User discussions

wpseek mobile