WP HOOKS
filtrod 2.8.0

private_title_format

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

Opis — z kodu źródłowego

Filters the text prepended to the post title of private posts.

The filter is only applied on the front end.

Parametry

ParametrTypOpis
$prependstringText displayed before the post title. Default 'Private: %s'.
$post\WP_PostCurrent post object.

Wywołanie

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

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

Popularne w tej kategorii