Thank you for your reply. You do have a valid point reg pretty permalinks but say I want to test out how removing the “name” query string would work on my website, would this code suffice:
function myplugin_query_vars( $qvars ) {
$qvars[] = 'custom_query_var';
return $qvars;
}
remove_filter( 'query_vars', 'myplugin_query_vars' );