WordPress at Your Fingertips
function is not described

WP_Importer::min_whitespace() public WP 1.0

Replace newlines, tabs, and multiple spaces with a single space

{} It's a method of the class: WP_Importer{}

No Hooks.

Return

String.

Usage

$WP_Importer = new WP_Importer();
$WP_Importer->min_whitespace( $string );
$string(string) (required)
-

Code of WP_Importer::min_whitespace() WP 5.8.2

public function min_whitespace( $string ) {
	return preg_replace( '|[\r\n\t ]+|', ' ', $string );
}