WP_Theme_JSON::process_blocks_custom_css( string $css, string $selector ): string

In this article

Processes the CSS, to apply nesting.

Parameters

$cssstringrequired
The CSS to process.
$selectorstringrequired
The selector to nest.

Return

string The processed CSS.

Source

*         'selector': '.wp-block-image',
*         'duotone': 'img',
*         'elements': {}
*       }
*     }
*
* @since 5.8.0
* @since 5.9.0 Added `duotone` key with CSS selector.
* @since 6.1.0 Added `features` key with block support feature level selectors.
* @since 6.3.0 Refactored and stabilized selectors API.
* @since 6.6.0 Updated to include block style variations from the block styles registry.
*

Changelog

VersionDescription
6.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.