filtrod 2.1.0
get_the_modified_date
Opis — z kodu źródłowego
Filters the date a post was last modified.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$the_time | string | int | false | The formatted date or false if no post is found. |
$format | string | PHP date format. |
$post | \WP_Post | null | WP_Post object or null if no post is found. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_the_modified_date', '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( 'get_the_modified_date', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii