wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_spaces_regexp › WordPress过滤钩子

Since4.0.0
已弃用n/a
› apply_filters( 'wp_spaces_regexp', '[\r\n\t ]|\xC2\xA0| ' )
参数:
  • () spaces Regexp pattern for matching common whitespace characters.
    Required: Yes
定义在:
文档:

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.




源码

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