WP_Importer::min_whitespace

Advertisement

Summery Summery

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

Syntax Syntax

WP_Importer::min_whitespace( string $string )

Parameters Parameters

$string

(Required)

Return Return

(string)

Source Source

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

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

Advertisement

Advertisement

Leave a Reply