Skip to content

Instantly share code, notes, and snippets.

@bogdan-mainwp
Last active November 4, 2020 14:44
Show Gist options
  • Save bogdan-mainwp/a2b6a6339dcd5500a4ec8108cac1faa4 to your computer and use it in GitHub Desktop.
Save bogdan-mainwp/a2b6a6339dcd5500a4ec8108cac1faa4 to your computer and use it in GitHub Desktop.
Custom code snippet for fixing the line break issue in reports.
<?php
// Add the following code snippet to the PHP section of the MainWP Custom Dashboard Extension
add_filter( 'mainwp_client_reports_newline_break', 'mycustom_client_reports_newline_break', 10, 1 );
function mycustom_client_reports_newline_break( $value ){
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment