Tooltipy
Automatically create tooltip boxes for your technical keywords to explain them for your visitors.
Install
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/lebleut/wp-tooltipy/archive/refs/heads/master.zipTooltipy (Keywords Tooltip Generator)
Automatically creates tooltip boxes for your technical keywords to explain them to your site visitors.
Description
Tooltipy automatically detects keywords in your posts/pages and displays tooltip popups with their definitions.
Version 6.0 is a complete architectural rewrite to modern PHP 8 OOP with namespaces and classes, while keeping 100% backward compatibility for all existing users (same database options, same post meta keys, same shortcodes, same hooks).
Key Features
- Auto-detect keywords and display tooltips on hover
- Synonyms support (pipe-separated)
- Case-sensitive matching option
- Prefix matching (e.g. "photo" matches "photography")
- Glossary shortcode:
[tooltip_glossary] - Keyword families / categories
- AJAX loading of tooltip content
- Animation effects (Animate.css)
- YouTube video tooltips
- Image alt-text tooltips
- Sidebar widget showing related keywords
- Custom CSS/JS hooks
- Extensible addon system (AddonInterface / AddonManager)
Architecture (6.0)
- PHP 8 namespaces under
Tooltipy\ - PSR-4 autoloading via
spl_autoload_register - Single-responsibility classes (Plugin, KeywordRepository, FrontendMatcher, ContentFilter, AjaxHandler, …)
AddonInterface+AddonManagerfor future paid addons- Full backward compatibility: same option names, post meta keys, hooks
Addon System
Register an addon from an external plugin:
add_action('tooltipy_register_addons', function(\Tooltipy\Addon\AddonManager $mgr) {
$mgr->register(new MyPaidAddon()); // implements AddonInterface
});
Available extension points:
tooltipy_register_addonstooltipy_settings_tabstooltipy_settings_tab_panelstltpy_posttypes_to_matchtltpy_custom_fields_hookskttg_another_tooltip_in_blocktltpy_post_type_argsbluet_kw_capabilitytooltipy_stylesheet_url
Backward Compatible Hooks (from 5.x)
All legacy hooks are preserved as aliases.
Installation
- Upload the plugin folder to
/wp-content/plugins/ - Activate through the 'Plugins' menu
- Go to Tooltipy > Settings to configure
Frequently Asked Questions
How do I create a keyword?
Go to Tooltipy > Add New in the WordPress admin and create a post. The title is the keyword.
How do I add a glossary?
Create a page and add the shortcode [tooltip_glossary].
Is 6.0 compatible with existing data from 5.x?
Yes. All database options, post meta, and shortcodes are identical.
How do I build a paid addon?
Implement the Tooltipy\Addon\AddonInterface and register it via the tooltipy_register_addons action hook.
Screenshots
- Tooltip in action
- Keyword editor
- Settings page
- Glossary page
Changelog
6.0.0
- Full OOP rewrite: PHP 8 namespaces, PSR-4 autoloading, single-responsibility classes
- New: AddonInterface + AddonManager for extensible addon ecosystem
- New: dedicated Plugin orchestrator class (replaces globals)
- New: KeywordRepository with proper transient management
- New: separate FrontendMatcher, ContentFilter, ScriptManager, AjaxHandler
- Improved: esc_*() / wp_kses_post() used throughout for better security
- Backward compatible: all option keys, meta keys, shortcodes, and hooks preserved
5.5.9
- Security: nonce verification on AJAX calls
- Improved: excluded posts now use postmeta (migration from global option)
- Fix: mediaelement.js loading for audio/video shortcodes inside tooltips
5.5.8
- Fix: various security improvements
Upgrade Notice
6.0.0
Major architectural rewrite. Requires PHP 8.0+. All existing data and settings are preserved automatically. No manual migration needed.