filtrod 6.9.0
quick_edit_statuses
Opis — z kodu źródłowego
Filters the statuses available in the Quick Edit and Bulk Edit UI.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$inline_edit_statuses | array<string,string> | An array of statuses available in the Quick Edit UI. |
$post_type | string | The post type slug. |
$bulk | bool | A flag to denote if it's a bulk action. |
$can_publish | bool | A flag to denote if the user can publish posts. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'quick_edit_statuses', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'quick_edit_statuses', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii