Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org
Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →
WP PlugIndex currently records Icon Table of Contents and Menus version 1.2 as active, updated 13y ago and tested up to WordPress 3.7.
Overview
About this plugin
Long documents with multiple headings are sometimes difficult to scan, especially on mobile devices. This plugin helps by providing an icon at the top of the page under the main heading which, when expanded, provides a table of contents (ToC) with bookmarks to all of the main headings in the content below (h1 to h4). It can also be used to display WordPress menus using the same icon interface.
How does it work?
To generate the table of contents for the current page content the plugin parses the current page content into a DOMDocument and then uses DOMXPath to find all of the main heading elements (h1 to h4). It adds bookmarks for each of these headings and then builds a nested unordered list linking to them as a DOM fragment. This gets inserted back into the main DOMDocument object.
Finally, the generated DOMDocument is returned as a string for output into the main page content.
The menu version of the plugin doesn’t have to parse any content. Instead it just loads in the menu details using the WordPress wp_get_nav_menu_items() function and iterates through them building an unordered list as a string. This is then inserted into a template and displayed on the page.
WordPress.org metadata
Plugin tags
Topics listed for this plugin in the WordPress.org directory.
table of contents
menu
menus
toc
tocs
Compatibility & maintenance
Compatibility & maintenance
Tested up to WordPress 3.7
Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.7.
Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.7
Minimum requirementsWordPress 3.0.1 · PHP not listed
Update activity7 Nov 201313y ago
“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.
Changes recorded by WP PlugIndex
Recent tracked changes
No tracked version or compatibility changes have been recorded by WP PlugIndex yet.
Tracking & source
WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.