WordPress filter hook

convert_chars

Fired by 5 WordPress plugins, running on 15K+ sites between them.

How to use convert_chars

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'convert_chars', function( $content ) {
	// Change $content here.
	return $content;
}, 10, 1 );

Argument names come from PixTypes's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

5 plugins that fire convert_chars

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. PixTypes icon PixTypes9,000+ installs apply_filters( 'convert_chars', $content ) features/metaboxes/fields/pix_builder.php:252
  2. RSS for Yandex Zen icon RSS for Yandex Zen4,000+ installs apply_filters( 'convert_chars', $temp ) rss-for-yandex-zen.php:1025
  3. Friends icon Friends900+ installs apply_filters( 'convert_chars', $title ) widgets/class-widget-header.php:45
  4. Realbig For WordPress icon Realbig For WordPress700+ installs apply_filters( 'convert_chars', $localTitle ) rssGenerator.php:1648
  5. Monster Пульс icon Monster Пульс60+ installs apply_filters( 'convert_chars', $content ) functions.php:281

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.