WP HOOKS
filtrod 4.4.0

wp_post_revision_title_expanded

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

Opis — z kodu źródłowego

Filters the formatted author and date for a revision.

Parametry

ParametrTypOpis
$revision_date_authorstringThe formatted string.
$revision\WP_PostThe revision object.
$linkboolWhether to link to the revisions page, as passed into wp_post_revision_title_expanded().

Wywołanie

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

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

Popularne w tej kategorii