A WordPress-centric search engine for devs and theme authors



wp_spaces_regexp ›

Since4.0.0
Deprecatedn/a
apply_filters( 'wp_spaces_regexp', '[\r\n\t ]|\xC2\xA0| ' )
Parameters:
  • (string) $spaces Regexp pattern for matching common whitespace characters.
    Required: Yes
Defined at:
Codex:

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.





Source

$spaces = apply_filters( 'wp_spaces_regexp', '[\r\n\t ]|\xC2\xA0| ' );