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

1.1.6 2016-08-02 14:11 UTC

This package is auto-updated.

Last update: 2024-11-26 20:44:48 UTC


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.