filtrod 4.0.0
wp_spaces_regexp
Opis — z kodu źródłowego
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.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$spaces | string | Regexp pattern for matching common whitespace characters. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wp_spaces_regexp', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wp_spaces_regexp', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii