WP_Importer::min_whitespace( string $string )

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


Parameters Parameters

$string

(string) (Required)


Top ↑

Return Return

(string)


Top ↑

Source Source

File: wp-admin/includes/class-wp-importer.php

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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.