filtrod 2.3.0
get_lastpostdate
Opis — z kodu źródłowego
Filters the most recent time that a post on the site was published.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$lastpostdate | string | false | The most recent time that a post was published, in 'Y-m-d H:i:s' format. False on failure. |
$timezone | string | Location to use for getting the post published date. See get_lastpostdate() for accepted <code>$timezone</code> values. |
$post_type | string | The post type to check. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_lastpostdate', '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_lastpostdate', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii