Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This hook allows you to manipulate the line breaks in an .csv file.
Usage
add_filter('frm_csv_line_break', 'frm_csv_line_break'); function frm_csv_line_break()
Parameters
- none
Examples
Prevent Line Break
This example will prevent paragraphs fields (and other fields that may have line breaks in them) from being fragmented when being imported as an .csv file.
add_filter('frm_csv_line_break', 'prevent_csv_line_break');
function prevent_csv_line_break(){
return '<br />'; //change this to whatever you'd like to use in place of line breaks
}