filtrod 4.4.0
post_edit_category_parent_dropdown_args
Opis — z kodu źródłowego
Filters the arguments for the taxonomy parent dropdown on the Post Edit page.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$parent_dropdown_args | array | { Optional. Array of arguments to generate parent dropdown. @type string $taxonomy Name of the taxonomy to retrieve. @type bool $hide_if_empty True to skip generating markup if no categories are found. Default 0. @type string $name Value for the 'name' attribute of the select element. Default "new{$tax_name}_parent". @type string $orderby Which column to use for ordering terms. Default 'name'. @type bool|int $hierarchical Whether to traverse the taxonomy hierarchy. Default 1. @type string $show_option_none Text to display for the "none" option. Default "— {$parent} —", where <code>$parent</code> is 'parent_item' taxonomy label. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'post_edit_category_parent_dropdown_args', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'post_edit_category_parent_dropdown_args', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii