Filter hook 'wp_spaces_regexp'

in WP Core File wp-includes/formatting.php at line 5844

Description

Filters the regexp for common whitespace characters. This string is substituted for the \s sequence as needed in regular expressions. For websites not written in English, different characters may represent whitespace. For websites not encoded in UTF-8, the 0xC2 0xA0 sequence may not be in use.

Occurrences

Filename Line Number
wp-includes/formatting.php 5844

Parameters

Type Name Description
string $spaces Regexp pattern for matching common whitespace characters.

PHP Doc

/**
		 * Filters the regexp for common whitespace characters.
		 *
		 * This string is substituted for the \s sequence as needed in regular
		 * expressions. For websites not written in English, different characters
		 * may represent whitespace. For websites not encoded in UTF-8, the 0xC2 0xA0
		 * sequence may not be in use.
		 *
		 * @since 4.0.0
		 *
		 * @param string $spaces Regexp pattern for matching common whitespace characters.
		 */