function WPCP_dashboard_metadata() { printf('<table border="0">'); $domain = RoleTaxonomy::getCurrentRoleDomain(); if ($domain["name"] != "") { $term_count = wp_count_terms($domain["name"], array('hide_empty' => false)); printf('<tr><td style="width:11em"><div class="dashicons-before dashicons-networking" style="display:inline"> </div> %1$s</td> <td align="right" style="width:4em"><a href="edit-tags.php?taxonomy=%2$s">%3$d</a></td></tr>', $domain["label"], $domain["name"], $term_count); } $object = new CPT_LearnOut(); $object->init(); $count = $object->WPCB_count_posts(NULL, $object->type, NULL); printf('<tr><td style="width:11em"><div class="dashicons-before dashicons-welcome-learn-more" style="display:inline"> </div> Learning Outcomes</td> <td align="right" style="width:4em"><a href="edit.php?post_type=learnout">%1$d</a></td></tr>', $count->publish + $count->pending + $count->draft); printf('</table>'); }