WP Manifestindependent plugin directory
manifest / admin / custom-post-type-menu-highlighting

Custom Post Type Menu Highlighting WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

A WordPress plugin that allows you to highlight menu items as parents of specified custom post types

★ 2stars
v1.1.0latest · 1 year ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/dxw/custom-post-type-menu-highlighting/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Custom Post Type Menu Highlighter

This plugin allows you to mark selected WordPress menu items as the parents of custom post types or taxonomy archives. It does this by adding the current-menu-ancestor class to those menu items when viewing that custom post type/taxonomy archive. Your CSS will need to be configured to style menu items with the current-menu-ancestor class appropriately.

How to use

Install the plugin using Whippet (recommended), or copy it directly into your wp-content/plugins/ directory for non-Whippet projects.

To mark a menu item as the parent for a custom post type, add post-type-[post-type-name] to the "CSS Classes" box for the item in the menu editor.

To mark a menu item as the parent for a taxonomy, add tax-type-[taxonomy-name] to the "CSS Classes".

Development

Install the dependencies:

composer install

Run the tests:

vendor/bin/kahlan spec

Run the linters:

vendor/bin/psalm
vendor/bin/php-cs-fixer

Releases

2 releases.

Tag
Published
v1.1.0 latest
Mar 17, 2025 1 year ago
Apr 28, 2022 4 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

Custom Post Type Menu Highlighting 1.1.0 · audited by WP Registry

No security issues found.

Audited release
1.1.0
Findings
none
Worst severity
—
Content hash
81549911e7d8b315dd418664…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.