johnbillion / extended-cpts

A library which provides extended functionality to WordPress custom post types and taxonomies.
GNU General Public License v2.0
979 stars 96 forks source link

Add post type as class selector in At A Glance widget link #97

Closed claytoncollie closed 6 years ago

claytoncollie commented 6 years ago

Dashboard glance items pull in menu icons via CSS. Right now, the link being created does not have an identifier for me to target in my stylesheet. It would be useful to add the post type name to this string on line 464

$text = '<a href="' . esc_url( $url ) . '" class="' . esc_attr( $this->cpt->post_type ) . '">' . esc_html( $num . ' ' . $text ) . '</a>';

johnbillion commented 6 years ago

Related: #101