WP HOOKS
filtrod 4.0.0

wp_spaces_regexp

Args 1Plik wp-includes/formatting.phpDokumentacja WP ↗

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

ParametrTypOpis
$spacesstringRegexp 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
}

Popularne w tej kategorii