wp-content/themes/twentytwenty/inc/custom-css.php:24Generates CSS.
$selectorstring$stylestring$valuestring$prefixstringoptional''$suffixstringoptional''$displaybooloptionaltrue function twentytwenty_generate_css( $selector, $style, $value, $prefix = '', $suffix = '', $display = true ) { $return = ''; /* * Bail early if we have no $selector elements or properties and $value. */ if ( ! $value || ! $selector ) { return; } $return = sprintf( '%s { %s: %s; }', $selector, $style, $prefix . $value . $suffix ); if ( $display ) { echo $return; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- We need to double check this, but for now, we want to pass PHPCS ;) } return $return; }Introduced in Twenty Twenty 1.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
none to string.verified against sourcesrc/wp-content/themes/twentytwenty/inc/custom-css.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.