<?php
/**
** Create by Mediavine plugin is enqueueing everywhere in admin
** this blocks it from FacetWP's settings page
** Mediavine is setting a Vue js object that conflicts
** with FacetWP's and causes these Console errors:
** 'Vue.config is undefined' in Firefox and
** 'Cannot set properties of undefined (setting 'devtools')' in Chrome
**/
add_action( 'admin_enqueue_scripts', function( $hook ) {
// block mediavine create script on FacetWP's settings page
if ( 'settings_page_facetwp' == $hook ) {
wp_dequeue_script( 'mv_create-script' );
}
}, 12 );