akcjareferencjaod 2.8.0
the_post
Opis — z kodu źródłowego
Fires once the post data has been set up.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post | \WP_Post | The Post object (passed by reference). |
$query | \WP_Query | The current Query object (passed by reference). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'the_post', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'the_post', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii