Hi, I have some custom codes add to functions.php which were removed when updated to the new version of GP. I have now added them again, but looks like none of them is working.
This is the code:
add_filter( 'generate_hooks_execute_php', '__return_true' );
add_filter( 'generate_schema_type', '__return_false' );
//Remove jQuery Migrate
function dequeue_jquery_migrate( $scripts ) {
if ( ! is_admin() && ! empty( $scripts->registered['jquery'] ) ) {
$scripts->registered['jquery']->deps = array_diff(
$scripts->registered['jquery']->deps,
[ 'jquery-migrate' ]
);
}
}
add_action( 'wp_default_scripts', 'dequeue_jquery_migrate' );
//Remove Jquery.js
//if ( !is_admin() ) wp_deregister_script('jquery');