Свойство | Тип | Описание | |
---|---|---|---|
$args | |||
$taxo |
Свойство | Тип | Описание | |
---|---|---|---|
$_cols | |||
$defaults | array | Default arguments for custom taxonomies. | |
$the_cols |
Метод | Описание | |
---|---|---|
__construct ( Extended_Taxonomy $taxo, array $args = [] ) | Class constructor. | |
_log_default_cols ( array $cols ) : array | Logs the default columns so we don't remove any custom columns added by other plugins. | |
col ( string $string, $col, integer $term_id ) | Output the column data for our custom columns. | |
col_term_meta ( string $meta_key, array $args, integer $term_id ) | Output column data for a term meta field. | |
cols ( array $cols ) : array | Add columns to the admin screen for this taxonomy. | |
glance_items ( array $items ) : array | Add our taxonomy to the 'At a Glance' widget on the WordPress 3.8+ dashboard. | |
meta_box_dropdown ( WP_Post $post, array $meta_box ) : null | Display the 'dropdown' meta box on the post editing screen. | |
meta_box_radio ( WP_Post $post, array $meta_box ) : null | Display the 'radio' meta box on the post editing screen. | |
meta_box_simple ( WP_Post $post, array $meta_box ) : null | Display the 'simple' meta box on the post editing screen. | |
meta_boxes ( string $object_type, mixed $object ) : null | Remove the default meta box from the post editing screen and add our custom meta box. | |
n ( string $single, string $plural, integer $number ) : string | A non-localised version of _n() | |
term_updated_messages ( array $messages ) : array | Add our term updated messages. |
Метод | Описание | |
---|---|---|
do_meta_box ( WP_Post $post, Walker $walker = null, boolean $show_none = false, string $type = 'checklist' ) : null | Display a meta box on the post editing screen. | |
get_item_title ( array $item ) : string | Get a sensible title for the current item (usually the arguments array for a column) |
public __construct ( Extended_Taxonomy $taxo, array $args = [] ) | ||
$taxo | Extended_Taxonomy | An extended taxonomy object |
$args | array | The admin arguments |
public _log_default_cols ( array $cols ) : array | ||
$cols | array | The default columns for this taxonomy screen |
Результат | array | The default columns for this taxonomy screen |
protected do_meta_box ( WP_Post $post, Walker $walker = null, boolean $show_none = false, string $type = 'checklist' ) : null | ||
$post | WP_Post | The post object |
$walker | Walker | An optional term walker |
$show_none | boolean | Whether to include a 'none' item in the term list |
$type | string | The taxonomy list type (checklist or dropdown) |
Результат | null |
protected get_item_title ( array $item ) : string | ||
$item | array | An array of arguments |
Результат | string | The item title |
public glance_items ( array $items ) : array | ||
$items | array | Array of items to display on the widget. |
Результат | array | Updated array of items. |
public meta_box_dropdown ( WP_Post $post, array $meta_box ) : null | ||
$post | WP_Post | The post object |
$meta_box | array | The meta box arguments |
Результат | null |
public meta_box_radio ( WP_Post $post, array $meta_box ) : null | ||
$post | WP_Post | The post object |
$meta_box | array | The meta box arguments |
Результат | null |
public meta_box_simple ( WP_Post $post, array $meta_box ) : null | ||
$post | WP_Post | The post object |
$meta_box | array | The meta box arguments |
Результат | null |
public static n ( string $single, string $plural, integer $number ) : string | ||
$single | string | The text that will be used if $number is 1 |
$plural | string | The text that will be used if $number is not 1 |
$number | integer | The number to compare against to use either $single or $plural |
Результат | string | Either $single or $plural text |
public term_updated_messages ( array $messages ) : array | ||
$messages | array | An associative array of term updated messages with taxonomy name as keys. |
Результат | array | Updated array of term updated messages. |
protected array $defaults | ||
Результат | array |