Viewing 1 replies (of 1 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    While not specific to our plugin at all, you can add a filter to the dashboard_glance_items filter, which will output basic un-ordered list items.

    Example:

    function test_example( $items ) {
    	$items[] = '<a href="#">Test example</a>';
    	return $items;
    }
    add_filter('dashboard_glance_items', 'test_example');

    https://cloudup.com/cC45-d2jDRs

    The circle icon is likely from WP admin css, thanks to the link, so you’d need to investigate the admin classes etc.

    I’d check out /wp-admin/includes/dashboard.php around line 231 or the “wp_dashboard_right_now()” function to see how WP core does up their post/page counts etc.

Viewing 1 replies (of 1 total)
  • The topic ‘How to show # of a certain CPT in the At A Glance in the WP dashboard’ is closed to new replies.