{"id":5702,"date":"2009-07-15T19:42:58","date_gmt":"2009-07-15T19:42:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/text-hover\/"},"modified":"2022-03-23T06:10:00","modified_gmt":"2022-03-23T06:10:00","slug":"text-hover","status":"publish","type":"plugin","link":"https:\/\/pap-aw.wordpress.org\/plugins\/text-hover\/","author":3606,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"4.2","stable_tag":"4.2","tested":"5.9.13","requires":"4.9","requires_php":"","requires_plugins":"","header_name":"Text Hover","header_author":"Scott Reilly","header_description":"","assets_banners_color":"99c6c8","last_updated":"2022-03-23 06:10:00","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522","header_plugin_uri":"https:\/\/coffee2code.com\/wp-plugins\/text-hover\/","header_author_uri":"https:\/\/coffee2code.com\/","rating":4.5,"author_block_rating":0,"active_installs":2000,"downloads":62550,"num_ratings":17,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"coffee2code","date":"2009-07-15 19:42:58"},"2.0":{"tag":"2.0","author":"coffee2code","date":"2009-07-16 03:28:40"},"2.2":{"tag":"2.2","author":"coffee2code","date":"2009-08-11 14:49:54"},"3.0":{"tag":"3.0","author":"coffee2code","date":"2010-09-21 19:25:37"},"3.0.1":{"tag":"3.0.1","author":"coffee2code","date":"2010-09-27 16:44:46"},"3.0.2":{"tag":"3.0.2","author":"coffee2code","date":"2010-10-19 14:23:37"},"3.0.3":{"tag":"3.0.3","author":"coffee2code","date":"2011-02-24 22:55:10"},"3.1":{"tag":"3.1","author":"coffee2code","date":"2011-07-19 03:38:23"},"3.1.1":{"tag":"3.1.1","author":"coffee2code","date":"2011-09-02 19:17:13"},"3.2":{"tag":"3.2","author":"coffee2code","date":"2011-12-08 20:24:40"},"3.2.1":{"tag":"3.2.1","author":"coffee2code","date":"2011-12-14 17:38:57"},"3.2.2":{"tag":"3.2.2","author":"coffee2code","date":"2012-01-31 03:54:27"},"3.5":{"tag":"3.5","author":"coffee2code","date":"2014-01-05 22:25:13"},"3.5.1":{"tag":"3.5.1","author":"coffee2code","date":"2014-01-28 17:56:19"},"3.6":{"tag":"3.6","author":"coffee2code","date":"2015-02-19 21:46:45"},"3.7.1":{"tag":"3.7.1","author":"coffee2code","date":"2016-06-21 21:51:50"},"3.8":{"tag":"3.8","author":"coffee2code","date":"2018-11-17 06:18:03"},"3.9":{"tag":"3.9","author":"coffee2code","date":"2020-01-09 18:59:14"},"3.9.1":{"tag":"3.9.1","author":"coffee2code","date":"2020-01-13 07:57:37"},"4.0":{"tag":"4.0","author":"coffee2code","date":"2020-07-31 23:28:54"},"4.1":{"tag":"4.1","author":"coffee2code","date":"2021-06-30 07:22:35"},"4.2":{"tag":"4.2","author":"coffee2code","date":"2022-03-23 06:10:00"}},"upgrade_notice":{"4.2":"<p>Recommended hardening release: restricted HTML tags that can be used as hover text in fancy tooltips, added DEVELOPER-DOCS.md, noted compatibility through WP 5.9, and minor settings page and documentation tweaks.<\/p>","4.1":"<p>Recommended feature release: added new setting to allow for user-specified filters to be processed, updated plugin framework significantly, improved plugin settings page, restructured unit test files, noted compatibility through WP 5.7, and more.<\/p>","4.0":"<p>Minor release: added setting to allow plugin to run later to avoid potential conflicts with other plugins, allowed hover strings to begin\/end in punctuation, updated plugin framework, added TODO.md, updated some URLs to be HTTPS, expanded unit testing, and updated compatibility to be WP 4.9-5.4+.<\/p>","3.9.1":"<p>Minor bugfix release: restored hooking of WP&#039;s <code>the_excerpt<\/code> filter instead of <code>get_the_excerpt<\/code>, corrected some inline documentation, and made minor improvements to unit tests.<\/p>","3.9":"<p>Recommended update: added support for select third-party plugins (Advanced Custom Fields, Elementor), tweaked plugin initialization, minor bugfix, updated plugin framework to 049, noted compatibility through WP 5.3+, created CHANGELOG.md, and updated copyright date (2020)<\/p>","3.8":"<p>Major update: changed default appearance of better-looking tooltip; switched to using <code>abbr<\/code> tag instead of <code>acronym<\/code> tag; misc improvements; updated plugin framework to 048; verified compatibility through WP 4.9; dropped compatibility with WP older than 4.7; updated copyright date (2018)<\/p>","3.7.1":"<p>Minor bugfix release: updated qTip2 library, which fixes a JavaScript error it had; updated plugin framework to 044.<\/p>","3.7":"<p>Recommended update: added support for single replacement of multibyte strings; added support for replacing HTML; improved support for localization; verified compatibility through WP 4.5; dropped compatibility with WP older than 4.1; updated copyright date (2016)<\/p>","3.6":"<p>Recommended update: improved support of &#039;&amp;&#039; in text to be replaced; added support for replacing multibyte text; added more unit tests; updated plugin framework to version 039; noted compatibility through WP 4.1+; added plugin icon<\/p>","3.5.1":"<p>Recommended minor bugfix: fix to honor replace_once checkbox value<\/p>","3.5":"<p>Major update: added qTip library for better looking hover popups; added ability to do one hover text per term per post; added ability to enable hover text in comments; added unit tests; compatibility now WP 3.6-3.8+<\/p>","3.2.2":"<p>Minor bugfix release: fixed bug where special characters were being double-escaped; updated plugin framework.<\/p>","3.2.1":"<p>Recommended bugfix release: fixed bug when $x (where x is a number) would not display when used in replacement string; fix to properly escape shortcut keys prior to internal use; and updated plugin framework.<\/p>","3.2":"<p>Recommended update. Highlights: fixed bug with settings not appearing in MS; updated plugin framework; noted compatibility with WP 3.3+; dropped compatibility with versions of WP older than 3.1.<\/p>","3.1.1":"<p>Bugfix release: fixed bug with cross-browser (mainly, IE) handling of non-wrapping textarea text; updated plugin framework; regenerated .pot file and put it into &#039;lang&#039; subdirectory.<\/p>","3.1":"<p>Recommended update. Highlights: updated compatibility through WP 3.2; dropped compatibility with version of WP older than 3.0; updated plugin framework, bugfix; and more.<\/p>","3.0.3":"<p>Trivial update: updated plugin framework to v021; noted compatibility with WP 3.1+ and updated copyright date.<\/p>","3.0.2":"<p>Minor plugin framework update and fix so that plugin form&#039;s textarea displays vertical scrollbar when lines exceed visible textarea space<\/p>","3.0":"<p>Significant and recommended update. Highlights: re-implementation; added more settings and hooks for customization; disable autowrap in textarea; misc improvements; verified WP 3.0 compatibility; dropped compatibility with WP older than 2.8.<\/p>"},"ratings":{"1":1,"2":0,"3":0,"4":4,"5":12},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1094674,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":833537,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","2.0","2.2","3.0","3.0.1","3.0.2","3.0.3","3.1","3.1.1","3.2","3.2.1","3.2.2","3.5","3.5.1","3.6","3.7.1","3.8","3.9","3.9.1","4.0","4.1","4.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2556199,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":833537,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":833537,"resolution":"3","location":"assets","locale":""}},"screenshots":{"1":"The admin options page for the plugin, where you define the terms\/acronyms\/phrases and their related hover text","2":"The plugin in action for a post when the mouse is hovering over a defined hover text term using the pretty tooltips","3":"The plugin in action for a post when the mouse is hovering over a defined hover text term using default browser tooltips (in this case, Chrome on OSX)"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[60519,60520,3066,1901,4649],"plugin_category":[57],"plugin_contributors":[78189],"plugin_business_model":[],"class_list":["post-5702","plugin","type-plugin","status-publish","hentry","plugin_tags-abbreviations","plugin_tags-acronyms","plugin_tags-help","plugin_tags-terms","plugin_tags-tooltips","plugin_category-taxonomy","plugin_contributors-coffee2code","plugin_committers-coffee2code"],"banners":{"banner":"https:\/\/ps.w.org\/text-hover\/assets\/banner-772x250.png?rev=833537","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/text-hover\/assets\/icon-128x128.png?rev=1094674","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/text-hover\/assets\/screenshot-1.png?rev=2556199","caption":"The admin options page for the plugin, where you define the terms\/acronyms\/phrases and their related hover text"},{"src":"https:\/\/ps.w.org\/text-hover\/assets\/screenshot-2.png?rev=833537","caption":"The plugin in action for a post when the mouse is hovering over a defined hover text term using the pretty tooltips"},{"src":"https:\/\/ps.w.org\/text-hover\/assets\/screenshot-3.png?rev=833537","caption":"The plugin in action for a post when the mouse is hovering over a defined hover text term using default browser tooltips (in this case, Chrome on OSX)"}],"raw_content":"<!--section=description-->\n<p>This plugin allows you to easily define help text that appears when a visitor hovers their mouse over a word or phrase in a post or page.<\/p>\n\n<p>Via the plugin's settings, simply specify the words or phrases that you want to be associated with hover text, and of course, the desired hover texts themselves. The format is quite simple; an example of which is shown here:<\/p>\n\n<pre><code>WP =&gt; WordPress\nMatt =&gt; Matt Mullenweg\nThe Scooby Shack =&gt; the bar where the gang hangs out\n<\/code><\/pre>\n\n<p>Additional features of the plugin controlled both via settings and filters:<\/p>\n\n<ul>\n<li>Hover text can be enabled for comments (it isn't by default)<\/li>\n<li>Hover text can be made case insensitive (it is case sensitive by default)<\/li>\n<li>Hover text can be limited to doing only one replacement per term, per post (by default, all occurrences of a term are given hovertext)<\/li>\n<li>Hover text can be rendered using the default browser tooltip (by default, the better-looking <a href=\"http:\/\/qtip2.com\/\">qTip2<\/a> library is used)<\/li>\n<li>Hover text can be expanded to affect other filters<\/li>\n<\/ul>\n\n<p><strong>Note:<\/strong> This is not the same as my <a href=\"https:\/\/wordpress.org\/plugins\/text-replace\">Text Replace<\/a> plugin, which defines terms or phrases that you want replaced by replacement text when displayed on your site. Text Hover instead adds the hover text as additional information for when visitors hover over the term, which is otherwise displayed in the post as you typed it.<\/p>\n\n<p>Links: <a href=\"https:\/\/coffee2code.com\/wp-plugins\/text-hover\/\">Plugin Homepage<\/a> | <a href=\"https:\/\/wordpress.org\/plugins\/text-hover\/\">Plugin Directory Page<\/a> | <a href=\"https:\/\/github.com\/coffee2code\/text-hover\/\">GitHub<\/a> | <a href=\"https:\/\/coffee2code.com\">Author Homepage<\/a><\/p>\n\n<h3>Developer Documentation<\/h3>\n\n<p>Developer documentation can be found in <a href=\"https:\/\/github.com\/coffee2code\/text-hover\/blob\/master\/DEVELOPER-DOCS.md\">DEVELOPER-DOCS.md<\/a>. That documentation covers the numerous hooks provided by the plugin. Those hooks are listed below to provide an overview of what's available.<\/p>\n\n<ul>\n<li><code>c2c_text_hover_filters<\/code> : Customize what hooks get text hover applied to them.<\/li>\n<li><code>c2c_text_hover_third_party_filters<\/code> : Customize what third-party hooks get text hover applied to them.<\/li>\n<li><code>c2c_text_hover_filter_priority<\/code> : Override the default priority for the <code>c2c_text_hover<\/code> filter.<\/li>\n<li><code>c2c_text_hover<\/code> Customize or override the setting defining all of the text hover terms and their hover texts.<\/li>\n<li><code>c2c_text_hover_comments<\/code> : Customize or override the setting indicating if text hover should be enabled in comments.<\/li>\n<li><code>c2c_text_hover_case_sensitive<\/code> : Customize or override the setting indicating if text hover should be case sensitive.<\/li>\n<li><code>c2c_text_hover_once<\/code> : Customize or override the setting indicating if text hovering should be limited to once per term per piece of text being processed regardless of how many times the term appears.<\/li>\n<li><code>c2c_text_hover_use_pretty_tooltips<\/code> : Customize or override the setting indicating if prettier tooltips should be used.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Whether installing or updating, whether this plugin or any other, it is always advisable to back-up your data before starting<\/li>\n<li>Install via the built-in WordPress plugin installer. Or download and unzip <code>text-hover.zip<\/code> inside the plugins directory for your site (typically <code>wp-content\/plugins\/<\/code>)<\/li>\n<li>Activate the plugin through the 'Plugins' admin menu in WordPress<\/li>\n<li>Go to the <code>Settings<\/code> -&gt; <code>Text Hover<\/code> admin settings page and customize the settings (namely to define the terms\/abbreviations and their explanations).<\/li>\n<li>Optional: Configure other plugin settings as desired.<\/li>\n<li>Use the terms\/abbreviations in posts and\/or pages (terms\/abbreviations appearing in existing posts will also be affected by this plugin)<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='in%20my%20posts%2C%20hover%20text%20terms%20do%20not%20appear%20any%20differently%20than%20regular%20text%20%28though%20i%20can%20hover%20over%20them%20and%20see%20the%20hover%20text%29%21%20what%20gives%3F'><h3>In my posts, hover text terms do not appear any differently than regular text (though I can hover over them and see the hover text)! What gives?<\/h3><\/dt>\n<dd><p>The plugin currently makes use of the standard HTML tag <code>abbr<\/code> to specify the terms and their hover text. Browsers have default handling and display of <code>abbr<\/code>. It's possibly that the CSS for your theme is overriding the default display. I use the following in my site's styles.css file to ensure it displays for me in the manner I prefer (which, by the same token, you can use more CSS formatting to further format the hover terms) :<\/p>\n\n<pre><code>abbr {\n    text-decoration: underline dotted #000;\n}\n<\/code><\/pre><\/dd>\n<dt id='does%20this%20plugin%20modify%20the%20post%20content%20in%20the%20database%3F'><h3>Does this plugin modify the post content in the database?<\/h3><\/dt>\n<dd><p>No. The plugin filters post content on-the-fly.<\/p><\/dd>\n<dt id='will%20this%20work%20for%20posts%20i%20wrote%20prior%20to%20installing%20this%20plugin%3F'><h3>Will this work for posts I wrote prior to installing this plugin?<\/h3><\/dt>\n<dd><p>Yes, if they include strings that you've now defined as terms.<\/p><\/dd>\n<dt id='what%20post%20fields%20get%20handled%20by%20this%20plugin%3F'><h3>What post fields get handled by this plugin?<\/h3><\/dt>\n<dd><p>By default, the plugin filters the post content, post excerpt fields, widget text, and optionally comments and comment excerpts. You can use the 'c2c_text_hover_filters' filter to modify that behavior (see Hooks section).<\/p><\/dd>\n<dt id='how%20can%20i%20get%20text%20hover%20to%20apply%20for%20post%20titles%20%28or%20something%20not%20processed%20for%20text%20hover%20by%20default%29%3F'><h3>How can I get text hover to apply for post titles (or something not processed for text hover by default)?<\/h3><\/dt>\n<dd><p>The easiest way would be to add \"the_title\" (or some other filter's name) as a line in the \"More filters\" setting. That setting allows any additional specified filters to be processed for text hovers.<\/p>\n\n<p>You can also programmatically add to the list of filters that get processed for text hover terms. See the Hooks section for an example.<\/p><\/dd>\n<dt id='is%20the%20plugin%20case%20sensitive%3F'><h3>Is the plugin case sensitive?<\/h3><\/dt>\n<dd><p>By default, yes. There is a setting you can change to make it case insensitive. Or you can use the 'c2c_text_hover_case_sensitive' filter (see Hooks section). Note that the option applies to all terms\/abbreviations. If you want to selectively have terms\/acronyms be case insensitive, you should leave the case sensitive setting checked and add a listing for each case variation you wish to support.<\/p><\/dd>\n<dt id='will%20all%20instances%20of%20a%20given%20term%20be%20hovered%20in%20a%20single%20post%3F'><h3>Will all instances of a given term be hovered in a single post?<\/h3><\/dt>\n<dd><p>By default, yes. There is a setting you can change so that only the first occurrence of the term in the post gets hovered. Or if you are a coder, you can use the 'c2c_text_hover_replace_once' filter (see Hooks section).<\/p><\/dd>\n<dt id='can%20i%20style%20the%20tooltip%3F'><h3>Can I style the tooltip?<\/h3><\/dt>\n<dd><p>Yes, but only if you have the pretty tooltips enabled (via settings or the filter). The class you want to style in your custom CSS is '.text-hover-qtip'.<\/p><\/dd>\n<dt id='does%20this%20plugin%20explicitly%20support%20any%20third-party%20plugins%3F'><h3>Does this plugin explicitly support any third-party plugins?<\/h3><\/dt>\n<dd><p>Yes. While this plugin is compatible with many other plugins that modify post and widget text, this plugin has explicit built-in support for Advanced Custom Fields and Elementor, which provide additional content areas. This plugin provides hooks that can be used to enable compatibility with other plugins and themes.<\/p>\n\n<p>If you know the name of the filter provided by a plugin, you can add it to the \"More filters\" setting to have its value processed for text hover.<\/p><\/dd>\n<dt id='why%20can%27t%20i%20find%20or%20access%20the%20plugin%27s%20settings%20page%20even%20though%20the%20plugin%20is%20activated%3F'><h3>Why can't I find or access the plugin's settings page even though the plugin is activated?<\/h3><\/dt>\n<dd><p>The plugin's settings page is found at \"Settings\" -&gt; \"Text Hover\" in the admin sidebar menu.<\/p>\n\n<p>In order to see that link in the menu and to access the plugin's settings page to configure the plugin, you must be logged in as an administrator. More specifically, you must be a user with the 'manage_options' and 'unfiltered_html' capabilities, which by default are capabilities of the 'administrator' role. If you have a custom role, or your administrator role has been customized, such that both capabilities are not assigned to you, then you cannot configure the plugin.<\/p><\/dd>\n<dt id='does%20this%20plugin%20include%20unit%20tests%3F'><h3>Does this plugin include unit tests?<\/h3><\/dt>\n<dd><p>Yes.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>4.2 (2022-03-22)<\/h4>\n\n<p>Highlights:<\/p>\n\n<p>This release introduces security hardening to restrict HTML tags that can be used as hover text in fancy tooltips, adds DEVELOPER-DOCS.md, notes compatibility through WP 5.9, and minor settings page and documentation tweaks.<\/p>\n\n<p>Details:<\/p>\n\n<ul>\n<li>Change: Disallow all but the most basic formatting markup within hover text. Props Rohan Chaudhari.\n\n<ul>\n<li>As continues to be the case, markup only ever works in the better looking tooltips.<\/li>\n<li>This only enforces the already documented limited markup support to basic formatting tags.<\/li>\n<li>Existing text hovers will be unaffected until the next time settings get saved.<\/li>\n<\/ul><\/li>\n<li>New: Add DEVELOPER-DOCS.md and move hooks documentation into it<\/li>\n<li>Change: Remove settings page helptext about 'replace_once' setting not applying to multibyte strings since it's no longer true<\/li>\n<li>Change: Lowercase the displayed values for 'when' setting<\/li>\n<li>Change: Move 'code' tags out of translatable string for 'when' setting<\/li>\n<li>Change: Note compatibility through WP 5.9+<\/li>\n<li>Change: Remove \"A screenshot of\" prefix from all screenshot captions<\/li>\n<li>Change: Tweak installation instructions in README.md<\/li>\n<li>Change: Fix typo in function docblock<\/li>\n<li>Change: Update copyright date (2022)<\/li>\n<li>New: Add a few more possible TODO items<\/li>\n<\/ul>\n\n<h4>4.1 (2021-06-29)<\/h4>\n\n<p>Highlights:<\/p>\n\n<p>This feature release adds a new setting to allow for user-specified filters to be processed, updates the plugin framework significantly, improves the plugin settings page, restructures unit test files, notes compatibility through WP 5.7, and more.<\/p>\n\n<p>Details:<\/p>\n\n<ul>\n<li>New: Add new setting \"More filters\" to allow for user-specified filters to be processed<\/li>\n<li>Change: Update plugin framework to 064\n\n<ul>\n<li>064:<\/li>\n<li>New: For checkbox settings, support a 'more_help' config option for defining help text to appear below checkbox and its label<\/li>\n<li>Fix: Fix URL for plugin listing donate link<\/li>\n<li>Change: Store donation URL as object variable<\/li>\n<li>Change: Update strings used for settings page donation link<\/li>\n<li>063:<\/li>\n<li>Fix: Simplify settings initialization to prevent conflicts with other plugins<\/li>\n<li>Change: Remove ability to detect plugin settings page before current screen is set, as it is no longer needed<\/li>\n<li>Change: Enqueue thickbox during <code>'admin_enqueue_scripts'<\/code> action instead of during <code>'init'<\/code><\/li>\n<li>Change: Use <code>is_plugin_admin_page()<\/code> in <code>help_tabs()<\/code> instead of reproducing its functionality<\/li>\n<li>Change: Trigger a debugging warning if <code>is_plugin_admin_page()<\/code> is used before <code>'admin_init'<\/code> action is fired<\/li>\n<li>062:<\/li>\n<li>Change: Update <code>is_plugin_admin_page()<\/code> to use <code>get_current_screen()<\/code> when available<\/li>\n<li>Change: Actually prevent object cloning and unserialization by throwing an error<\/li>\n<li>Change: Check that there is a current screen before attempting to access its property<\/li>\n<li>Change: Remove 'type' attribute from <code>style<\/code> tag<\/li>\n<li>Change: Incorporate commonly defined styling for inline_textarea<\/li>\n<li>061:<\/li>\n<li>Fix bug preventing settings from getting saved<\/li>\n<li>060:<\/li>\n<li>Rename class from <code>c2c_{PluginName}_Plugin_051<\/code> to <code>c2c_Plugin_060<\/code><\/li>\n<li>Move string translation handling into inheriting class making the plugin framework code plugin-agnostic\n\n<ul>\n<li>Add abstract function <code>get_c2c_string()<\/code> as a getter for translated strings<\/li>\n<li>Replace all existing string usage with calls to <code>get_c2c_string()<\/code><\/li>\n<\/ul><\/li>\n<li>Handle WordPress's deprecation of the use of the term \"whitelist\"\n\n<ul>\n<li>Change: Rename <code>whitelist_options()<\/code> to <code>allowed_options()<\/code><\/li>\n<li>Change: Use <code>add_allowed_options()<\/code> instead of deprecated <code>add_option_whitelist()<\/code> for WP 5.5+<\/li>\n<li>Change: Hook <code>allowed_options<\/code> filter instead of deprecated <code>whitelist_options<\/code> for WP 5.5+<\/li>\n<\/ul><\/li>\n<li>New: Add initial unit tests (currently just covering <code>is_wp_version_cmp()<\/code> and <code>get_c2c_string()<\/code>)<\/li>\n<li>Add <code>is_wp_version_cmp()<\/code> as a utility to compare current WP version against a given WP version<\/li>\n<li>Refactor <code>contextual_help()<\/code> to be easier to read, and correct function docblocks<\/li>\n<li>Don't translate urlencoded donation email body text<\/li>\n<li>Add inline comments for translators to clarify purpose of placeholders<\/li>\n<li>Change PHP package name (make it singular)<\/li>\n<li>Tweak inline function description<\/li>\n<li>Note compatibility through WP 5.7+<\/li>\n<li>Update copyright date (2021)<\/li>\n<li>051:<\/li>\n<li>Allow setting integer input value to include commas<\/li>\n<li>Use <code>number_format_i18n()<\/code> to format integer value within input field<\/li>\n<li>Update link to coffee2code.com to be HTTPS<\/li>\n<li>Update <code>readme_url()<\/code> to refer to plugin's readme.txt on plugins.svn.wordpress.org<\/li>\n<li>Remove defunct line of code<\/li>\n<\/ul><\/li>\n<li>New: Add <code>get_default_filters()<\/code> as getter for core filters, third-party filters, or both<\/li>\n<li>Change: Allow displayed dropdown values for 'when' setting to be translated<\/li>\n<li>Change: Improve settings page help text by adding, rephrasing, relocating, and tweaaking some formatting<\/li>\n<li>Change: Change text_to_hover setting from being a textarea to inline textarea<\/li>\n<li>Change: Move translation of all parent class strings into main plugin file<\/li>\n<li>Change: Output newlines after block-level tags in settings page<\/li>\n<li>Change: Omit 'cols' attribute for textarea since it is overridden<\/li>\n<li>Change: Note compatibility through WP 5.7+<\/li>\n<li>Change: Update copyright date (2021)<\/li>\n<li>Change: Change plugin's short description<\/li>\n<li>Change: Tweak plugin's readme.txt tags<\/li>\n<li>Change: Sync installation instructions in README.txt with what's in readme.txt<\/li>\n<li>Fix: Use correct textdomain for a string translation<\/li>\n<li>Unit tests:\n\n<ul>\n<li>Change: Restructure unit test directories and files into <code>tests\/<\/code> top-level directory\n\n<ul>\n<li>Change: Move <code>bin\/<\/code> into <code>tests\/<\/code><\/li>\n<li>Change: Move <code>tests\/bootstrap.php<\/code> into <code>tests\/phpunit\/<\/code><\/li>\n<li>Change: In bootstrap, store path to plugin file constant so its value can be used within that file and in test file<\/li>\n<li>Change: Move <code>tests\/*.php<\/code> into <code>tests\/phpunit\/tests\/<\/code><\/li>\n<li>Change: Remove 'test-' prefix from unit test files<\/li>\n<li>Change: Rename <code>phpunit.xml<\/code> to <code>phpunit.xml.dist<\/code> per best practices<\/li>\n<\/ul><\/li>\n<li>New: Add additional punctuation-related test cases<\/li>\n<li>New: Add helper function <code>get_core_filters()<\/code> and <code>get_3rd_party_filters()<\/code> to DRY up data reuse<\/li>\n<\/ul><\/li>\n<li>New: Add a few more possible TODO items<\/li>\n<li>Change: Updated screenshot for settings page<\/li>\n<\/ul>\n\n<h4>4.0 (2020-07-16)<\/h4>\n\n<p>Highlights:<\/p>\n\n<p>This minor release adds a new setting that can allow the plugin to run later to avoid potential conflicts with other plugins, now allows hover strings to begin or end with punctuation, updates its plugin framework, adds a TODO.md file, updates a few URLs to be HTTPS, expands unit testing, and updates compatibility to be WP 4.9-5.4+.<\/p>\n\n<p>Details:<\/p>\n\n<ul>\n<li>New: Add new setting to allow control over when text hovers are handled early or late in text processing process<\/li>\n<li>New: Add filter <code>c2c_text_hover_filter_priority<\/code> for filtering hook priority for text hover handler<\/li>\n<li>New: Allow text to hover string to begin and\/or end in punctuation.<\/li>\n<li>New: Add TODO.md and move existing TODO list from top of main plugin file into it<\/li>\n<li>Change: Update plugin framework to 050\n\n<ul>\n<li>050:<\/li>\n<li>Allow a hash entry to literally have '0' as a value without being entirely omitted when saved<\/li>\n<li>Output donation markup using <code>printf()<\/code> rather than using string concatenation<\/li>\n<li>Update copyright date (2020)<\/li>\n<li>Note compatibility through WP 5.4+<\/li>\n<li>Drop compatibility with versions of WP older than 4.9<\/li>\n<\/ul><\/li>\n<li>Change: Remove plugin setting page help text indicating order matters (it hasn't since v3.8)<\/li>\n<li>Change: Note compatibility through WP 5.4+<\/li>\n<li>Change: Drop compatibility with versions of WP older than 4.9<\/li>\n<li>Change: Update links to coffee2code.com to be HTTPS<\/li>\n<li>Unit tests:\n\n<ul>\n<li>New: Add <code>get_filter_names()<\/code> as a helper method for getting the default and third-party filter names<\/li>\n<li>New: Add <code>unhook_default_filters()<\/code> as a helper method to unhook plugin's default filters hooked to <code>text_hover()<\/code><\/li>\n<li>New: Add test case for hover text that includes HTML<\/li>\n<li>New: Add tests for <code>enqueue_scripts()<\/code>, <code>options_page_description()<\/code><\/li>\n<li>New: Add test for setting name<\/li>\n<li>New: Add tests for setting defaults<\/li>\n<li>New: Add explicit tests to ensure falsey hover text values don't alter original text<\/li>\n<li>New: Add explicit tests to ensure text replacements don't occur within <code>abbr<\/code> tag contents or in any tag attributes<\/li>\n<li>Change: Store plugin instance in test object to simplify referencing it<\/li>\n<li>Change: Remove unnecessary unregistering of hooks in <code>tearDown()<\/code><\/li>\n<li>Change: Add <code>$priority<\/code> argument to <code>test_hover_applies_to_default_filters()<\/code><\/li>\n<li>Change: Remove duplicative <code>reset_options()<\/code> call<\/li>\n<li>Change: Rename unit test function so that it is treated as a unit test<\/li>\n<li>Change: Use HTTPS for link to WP SVN repository in bin script for configuring unit tests (and delete commented-out code)<\/li>\n<\/ul><\/li>\n<li>Change: Update screenshot<\/li>\n<\/ul>\n\n<p><em>Full changelog is available in <a href=\"https:\/\/github.com\/coffee2code\/text-hover\/blob\/master\/CHANGELOG.md\">CHANGELOG.md<\/a>.<\/em><\/p>","raw_excerpt":"Add hover text (aka tooltips) to content in posts. Handy for providing explanations of names, terms, phrases, abbreviations, and acronyms.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/5702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"author":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/users\/3606"}],"replies":[{"embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=5702"}],"wp:attachment":[{"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=5702"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=5702"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=5702"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=5702"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=5702"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pap-aw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=5702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}