src/Admin.php
public function dashboardTaxonomies()
    {
        $taxonomies = get_taxonomies($args, $output, $operator);

        foreach ($taxonomies as $taxonomy) {
            $num_terms  = wp_count_terms($taxonomy->name);
            $num = number_format_i18n($num_terms);
            $text = _n($taxonomy->labels->singular_name, $taxonomy->labels->name, intval($num_terms));

            if (current_user_can('manage_categories')) {
                $num = "<a href='edit-tags.php?taxonomy=$taxonomy->name'>$num";
                $text = "$text</a>";
            }

            echo '<li class="post-count">' . $num . ' ' . $text . '</li>';
        }
    }
public function dashboardTaxonomies()
    {
        $taxonomies = get_taxonomies($args, $output, $operator);

        foreach ($taxonomies as $taxonomy) {
            $num_terms  = wp_count_terms($taxonomy->name);
            $num = number_format_i18n($num_terms);
            $text = _n($taxonomy->labels->singular_name, $taxonomy->labels->name, intval($num_terms));

            if (current_user_can('manage_categories')) {
                $num = "<a href='edit-tags.php?taxonomy=$taxonomy->name'>$num";
                $text = "$text</a>";
            }

            echo '<li class="post-count">' . $num . ' ' . $text . '</li>';
        }
    }
public function dashboardTaxonomies ( ) { $ taxonomies = get_taxonomies ( $ args , $ output , $ operator ) ; foreach ( $ taxonomies as $ taxonomy ) { $ num_terms = wp_count_terms ( $ taxonomy -> name ) ; $ num = number_format_i18n ( $ num_terms ) ; $ text = _n ( $ taxonomy -> labels -> singular_name , $ taxonomy -> labels -> name , intval ( $ num_terms ) ) ; if ( current_user_can ( 'manage_categories' ) ) { $ num = "<a href='edit-tags.php?taxonomy=$taxonomy->name'>$num" ; $ text = "$text</a>" ; } echo '<li class="post-count">' . $ num . ' ' . $ text . '</li>' ; } }
Adds taxonomies to the Right Now dashboard

@since  1.0.0
@access public
@param
@return void
Adds taxonomies to the Right Now dashboard