Skip to content

Instantly share code, notes, and snippets.

@wtmujeebu
Created October 21, 2021 10:33
Show Gist options
  • Save wtmujeebu/9c81032cae67f1c6ba56428bb80d706e to your computer and use it in GitHub Desktop.
Save wtmujeebu/9c81032cae67f1c6ba56428bb80d706e to your computer and use it in GitHub Desktop.
Escape backslash on CSV import when data contains slash
<?php // Do not copy this line
add_filter('wt_csv_raeder_csv_escape', 'wt_csv_raeder_csv_escape');
function wt_csv_raeder_csv_escape($csv_escape){
return '\\';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment