filtrod 5.7.0
update_post_term_count_statuses
Opis — z kodu źródłowego
Filters the post statuses for updating the term count.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$post_statuses | string[] | List of post statuses to include in the count. Default is 'publish'. |
$taxonomy | \WP_Taxonomy | Current taxonomy object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'update_post_term_count_statuses', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'update_post_term_count_statuses', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii