filtrod 4.4.0
wp_post_revision_title_expanded
Opis — z kodu źródłowego
Filters the formatted author and date for a revision.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$revision_date_author | string | The formatted string. |
$revision | \WP_Post | The revision object. |
$link | bool | Whether 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
}
// 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