filtrod 1.5.0
get_the_time
Opis — z kodu źródłowego
Filters the time of the post.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$the_time | string | int | Formatted date string or Unix timestamp if <code>$format</code> is 'U' or 'G'. |
$format | string | Format to use for retrieving the time the post was written. Accepts 'G', 'U', or PHP date format. |
$post | \WP_Post | Post object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_the_time', '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_time', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii