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: - Introduced in WordPress: 6.3.0
- Deprecated in WordPress: —
Description
Determines the CSS selector for the block type and property provided,
returning it if available.