Remove AdSense ID Setting in Customizer

Unless otherwise indicated, the code snippets you see below should be placed into your theme’s functions.php file.

Here is the code needed to remove the Google AdSense ID setting in the customizer:

// Remove AdSense ID setting from Customizer.
add_filter( 'genesis_customizer_theme_settings_config', 'child_remove_adsense_customizer' );
function child_remove_adsense_customizer( $config ) {
	unset( $config['genesis']['sections']['genesis_adsense'] );
 
	return $config;
}
What are your feelings