Uses
Uses | Description |
---|---|
wp-includes/l10n.php: _x() | Retrieve translated string with gettext context. |
wp-includes/l10n.php: __() | Retrieve the translation of $text. |
(array)
File: wp-admin/includes/class-wp-terms-list-table.php
public function get_columns() { $columns = array( 'cb' => '<input type="checkbox" />', 'name' => _x( 'Name', 'term name' ), 'description' => __( 'Description' ), 'slug' => __( 'Slug' ), ); if ( 'link_category' === $this->screen->taxonomy ) { $columns['links'] = __( 'Links' ); } else { $columns['posts'] = _x( 'Count', 'Number/count of items' ); } return $columns; }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_terms_list_table/get_columns