过滤正则空格字符的正则表达式。
原型
apply_filters( 'wp_spaces_regexp', string $spaces )
描述
正则表达式中根据需要将此字符串替换为 s序列。对于非英文网站,不同的字符可能代表空白。对于未以UTF-8编码的网站,0xC2 0xA0序列可能未被使用。
参数
$spaces
(string)
用于匹配常见空白字符的正则表达式模式。
源文件
路径:wp-includes/formatting.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/wp_spaces_regexp/