For a project I want to remove jquery from frontend and usually the following code would do that but since some of the generatepress modules use it it still loads.
is there any way to remove it even if it breaks stuff for now without editing any core files?
add_filter( 'wp_default_scripts', 'change_default_jquery' );
function change_default_jquery( &$scripts){
if(!is_admin()){
$scripts->remove( 'jquery');
$scripts->add( 'jquery', false, array( 'jquery-core' ), '1.10.2' );
}
}