public function coreJqueryMigrate()
    {
        if (OL_ZEUS_ISADMIN) {
            return;
        }

        add_action('wp_default_scripts', function ($scripts) {
            if (!empty($scripts->registered['jquery'])) {
                $scripts->registered['jquery']->deps = array_diff($scripts->registered['jquery']->deps, ['jquery-migrate']);
            }
        });
    }
public function coreJqueryMigrate()
    {
        if (OL_ZEUS_ISADMIN) {
            return;
        }

        add_action('wp_default_scripts', function ($scripts) {
            if (!empty($scripts->registered['jquery'])) {
                $scripts->registered['jquery']->deps = array_diff($scripts->registered['jquery']->deps, ['jquery-migrate']);
            }
        });
    }
public function coreJqueryMigrate ( ) { if ( OL_ZEUS_ISADMIN ) { return ; } add_action ( 'wp_default_scripts' , function ( $ scripts ) { if ( ! empty ( $ scripts -> registered [ 'jquery' ] ) ) { $ scripts -> registered [ 'jquery' ] -> deps = array_diff ( $ scripts -> registered [ 'jquery' ] -> deps , [ 'jquery-migrate' ] ) ; } } ) ; }
Remove jQuery Migrate default script
Remove jQuery Migrate default script