wp_get_block_css_selector


wp_get_block_css_selector ( $block_type, $target = 'root', $fallback = false )

Parameters:
  • (WP_Block_Type) block_type The block's type.
  • (string|array) target The desired selector's target, `root` or array path.
  • (bool) fallback Whether to fall back to broader selector.
Returns:
  • (string|null) CSS selector or `null` if no selector available.
Defined at:

Description

Determines the CSS selector for the block type and property provided, returning it if available.

Related Functions

get_block_asset_url, wp_use_widgets_block_editor, wp_setup_widgets_block_editor, get_block_categories, wp_get_block_default_classname

Top Google Results

User discussions

wpseek mobile