Coding

My Eyes Are up Here – Skripte im Customizer deaktivieren

site 2159356 1920

Snippet beseitigt den vom Plugin My Eyes Are up Here in der Customizer-Ansicht verursachten Fehler:

Uncaught TypeError: Cannot read property 'apply' of undefined at onmessage (scripts.min.js:19)

function pppf_unregister_meauh_scripts_in_customizer() {
	if ( is_customize_preview() ) wp_deregister_script('meauh-main');	
}
add_action( 'init', 'pppf_unregister_meauh_scripts_in_customizer' );

In die functions.php vom Theme einfügen.

weiter schmökern