);
// Add partial for background_color.
$wp_customize->selective_refresh->
add_partial( 'background_color',
array
( 'selector' => '#dark-mode-toggler',
'container_inclusive' => true,
'render_callback' =>
function() { $attrs =
( $this->
switch_should_render() ) ? array
() : array
( 'style' => 'display:none;'
);
$this->
the_html( $attrs );
},
) );
} /**
* Calculates classes for the main <html> element.
*
* @since Twenty Twenty-One 1.0
*
* @param string $classes The classes for <html> element.
* @return string
*/