wp-content/themes/twentytwentyone/functions.php:610Calculates classes for the main <html> element.
voidOne hook fires while twentytwentyone_the_html_classes() runs, in this order:
Filters the classes for the main element.
function twentytwentyone_the_html_classes() { /** * Filters the classes for the main <html> element. * * @since Twenty Twenty-One 1.0 * * @param string The list of classes. Default empty string. */ $classes = apply_filters( 'twentytwentyone_html_classes', '' ); if ( ! $classes ) { return; } echo 'class="' . esc_attr( $classes ) . '"';}Introduced in Twenty Twenty-One 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentytwentyone/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.