WP HOOKS
filtrod 0.71

single_post_title

Args 2Plik wp-includes/general-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the page title for a single post.

Parametry

ParametrTypOpis
$_post_titlestringThe single post page title.
$_post\WP_PostThe current post.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'single_post_title', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii