<?php
/**
** NOTE: This issue was FIXED in Create v1.10.2. The snippet below is only needed in older versions.
** See: https://wordpress.org/support/topic/vue-errors-in-other-plugins-facetwp/
** The Create plugin by Mediavine plugin v1.10.1 and earlier was enqueueing its JS on all admin pages.
** This snippet blocks its JS from FacetWP's settings page
** Create was setting a Vue JS object that conflicted 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 );