trendwerk / post-type-menu-highlight
Fixes classes in main menu. Made for WordPress.
Installs: 8 952
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 1
Type:wordpress-muplugin
Requires
- php: >=5.4
- composer/installers: ~1
README
Fixes classes in main menu. Made for WordPress.
Assigns the right classes to post type archives in a WordPress menu.
Installation
If you're using Composer to manage WordPress, add this plugin to your project's dependencies. Run:
composer require trendwerk/post-type-menu-highlight
Hooks
apply_filters( 'tp-highlight-taxonomy-post_type', $post_type, $taxonomy );
Filters the preferred post type to be highlighted when viewing a taxonomy term.