Applies a filter to the list of style nodes that comes from WP_Theme_JSON::get_style_nodes().
Description
This particular filter removes all of the blocks from the array. We want WP_Theme_JSON to be ignorant of the implementation details of how the CSS is being used.This filter allows us to modify the output of WP_Theme_JSON depending on whether or not we are loading separate assets, without making the class aware of that detail.
Signature, return type and hooks compared across 5 parsed releases.
7.0.4
Parameter $nodes retyped from array to untyped.verified against source
7.0.4
Return type changed from array to array<array<string,.verified against source
6.1.0
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/script-loader.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.