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