src/class-extended-taxonomy-admin.php
public function glance_items( array $items ) {

		$taxonomy = get_taxonomy( $this->taxo->taxonomy );

		if ( ! current_user_can( $taxonomy->cap->manage_terms ) ) {
			return $items;
		}
		if ( $taxonomy->_builtin ) {
			return $items;
		}

		# Get the labels and format the counts:
		$count = wp_count_terms( $this->taxo->taxonomy );
		$text  = self::n( $taxonomy->labels->singular_name, $taxonomy->labels->name, $count );
		$num   = number_format_i18n( $count );

		# This is absolutely not localisable. WordPress 3.8 didn't add a new taxonomy label.
		$url = add_query_arg( [
			'taxonomy'  => $this->taxo->taxonomy,
			'post_type' => reset( $taxonomy->object_type ),
		], admin_url( 'edit-tags.php' ) );
		$text = '<a href="' . esc_url( $url ) . '" class="taxo-' . esc_attr( $this->taxo->taxonomy ) . '-count">' . esc_html( $num . ' ' . $text ) . '</a>';

		# Go!
		$items[] = $text;

		return $items;

	}
public function glance_items( array $items ) {

		$taxonomy = get_taxonomy( $this->taxo->taxonomy );

		if ( ! current_user_can( $taxonomy->cap->manage_terms ) ) {
			return $items;
		}
		if ( $taxonomy->_builtin ) {
			return $items;
		}

		# Get the labels and format the counts:
		$count = wp_count_terms( $this->taxo->taxonomy );
		$text  = self::n( $taxonomy->labels->singular_name, $taxonomy->labels->name, $count );
		$num   = number_format_i18n( $count );

		# This is absolutely not localisable. WordPress 3.8 didn't add a new taxonomy label.
		$url = add_query_arg( [
			'taxonomy'  => $this->taxo->taxonomy,
			'post_type' => reset( $taxonomy->object_type ),
		], admin_url( 'edit-tags.php' ) );
		$text = '<a href="' . esc_url( $url ) . '" class="taxo-' . esc_attr( $this->taxo->taxonomy ) . '-count">' . esc_html( $num . ' ' . $text ) . '</a>';

		# Go!
		$items[] = $text;

		return $items;

	}
public function glance_items ( array $ items ) { $ taxonomy = get_taxonomy ( $ this -> taxo -> taxonomy ) ; if ( ! current_user_can ( $ taxonomy -> cap -> manage_terms ) ) { return $ items ; } if ( $ taxonomy -> _builtin ) { return $ items ; } # Get the labels and format the counts: $ count = wp_count_terms ( $ this -> taxo -> taxonomy ) ; $ text = self :: n ( $ taxonomy -> labels -> singular_name , $ taxonomy -> labels -> name , $ count ) ; $ num = number_format_i18n ( $ count ) ; # This is absolutely not localisable. WordPress 3.8 didn't add a new taxonomy label. $ url = add_query_arg ( [ 'taxonomy' => $ this -> taxo -> taxonomy , 'post_type' => reset ( $ taxonomy -> object_type ) , ] , admin_url ( 'edit-tags.php' ) ) ; $ text = '<a href="' . esc_url ( $ url ) . '" class="taxo-' . esc_attr ( $ this -> taxo -> taxonomy ) . '-count">' . esc_html ( $ num . ' ' . $ text ) . '</a>' ; # Go! $ items [ ] = $ text ; return $ items ; }
Add our taxonomy to the 'At a Glance' widget on the WordPress 3.8+ dashboard.

@param  array $items Array of items to display on the widget.
@return array        Updated array of items.
Add our taxonomy to the At a Glance widget on the WordPress 3 . 8 + dashboard .