static function add_menu_counter($parent_title, $count_function) { if (!is_admin()) { return false; } $new_args = array($parent_title => array('position' => "on {$parent_title}", 'counter' => $count_function)); H::add_menus($new_args); }