WordPress plugin intelligence profile

HTML Special Characters Helper

Admin widget on the Add/Edit Post pages for inserting HTML encodings of special characters into the post.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.7
Current version2.2
WordPress coverageTested up to WordPress 4.7
Minimum stackWP 4.6 · PHP —
Directory statusactive
Last directory update22 Feb 20179y ago
Active installations200Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 3 ratings
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 HTML Special Characters Helper version 2.2 as active, updated 9y ago and tested up to WordPress 4.7.

Overview

About this plugin

Add an admin widget labeled “HTML Special Characters” that is present in the admin Add/Edit Post and Add/Edit Page pages. Clicking on any special character in the widget causes its character encoding to be inserted into the post body text field at the current cursor location (or at the end of the post if the cursor isn’t located in the post body field).

Hovering over any of the special characters in the admin widget causes hover text to appear that shows the HTML entity encoding for the character as well as the name of the character.

Note that when used in the visual editor mode the special character itself is added to the post body. Also note that the visual editor has its own special characters popup helper accessible via the advanced toolbar, which depending on your usage, may make this plugin unnecessary for you. In truth, the plugin is intended more for the non-visual (aka HTML) mode as that is the mode I (the plugin author) use.

Links: Plugin Homepage | Plugin Directory Page | Author Homepage

Filters

The plugin exposes two filters for hooking. Typically, code making use of filters should ideally be put into a mu-plugin or site-specific plugin (which is beyond the scope of this readme to explain).

c2c_html_special_characters (filter)

The ‘c2c_html_special_characters’ hook allows you to remove existing characters or entire groups of characters, and/or add new characters or groups of characters.

Arguments:

  • $codes (array): An association array in which the keys are a grouping name and the values are associative arrays themselves with the code as the key and the human-friendly descriptions as the values.

Example:

/** * Add a new grouping of characters (accented 'A's). * * @param array $characters Default HTML special characters. * @return array */ function more_html_special_characters( $characters ) { $characters['accented_a'] = array( 'name' => 'Accented A', 'À' => 'A grave accent', 'Á' => 'A accute accent', 'Â' => 'A circumflex', 'Ã' => 'A tilde', 'Ä' => 'A umlaut', 'Å' => 'A ring', 'Æ' => 'AE ligature', ); return $characters; // Important!

} add_filter( 'c2c_html_special_characters', 'more_html_special_characters' );

c2c_html_special_characters_post_type (filter)

The ‘c2c_html_special_characters_post_type’ hook allows you to specify which post_types for which the HTML Special Characters metabox should be shown.

Arguments:

  • $post_types (array): An array of post types. By default, this value is array( 'page', 'post' )

Example:

/** * Show HTML Special Characters Helper for additional post_types. * * @param array $post_types Arry of post types. * @return array */ function more_html_special_characters_post_types( $post_types ) { $post_types[] = 'products'; // Show for products unset( $post_types['page'] ); // Don't show for pages return $post_types; } add_filter( 'c2c_html_special_characters_post_types', 'more_html_special_characters_post_types' );

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • admin widget
  • html special characters
  • write post
  • dbx
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.7

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.7.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.7
Minimum requirementsWordPress 4.6 · PHP not listed
Update activity22 Feb 20179y 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

WordPress compatibility4.7.354.7.38
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.