filtrod 4.4.0
get_post_status
Opis — z kodu źródłowego
Filters the post status.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post_status | string | The post status. |
$post | \WP_Post | The post object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_post_status', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_post_status', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii