wp-content/themes/twentytwentyone/classes/class-twenty-twenty-one-custom-colors.php:20Instantiates the object.
public function __construct() { // Enqueue color variables for customizer & frontend. add_action( 'wp_enqueue_scripts', array( $this, 'custom_color_variables' ) ); // Enqueue color variables for editor. if ( is_admin() ) { add_action( 'enqueue_block_assets', array( $this, 'editor_custom_color_variables' ) ); } // Add body-class if needed. add_filter( 'body_class', array( $this, 'body_class' ) ); }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/classes/class-twenty-twenty-one-custom-colors.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.