[wp-hackers] filtering french characters in the_title

Mike Little mike at zed1.com
Mon Oct 19 16:06:51 UTC 2009

2009/10/19 Simon Blackbourn <piemanek at gmail.com>

> thanks for the ideas, but unfortunately neither of them work (i was hoping
> scribu's would as it would be future-proof if other languages were added).

Hi Simon,

You should be using the 'protected_title_format' filter.

This will do what you want, regardless of the language,

add_filter('protected_title_format', 'my_protected_filter');
function my_protected_filter($prefix) {
    //error_log("received $prefix");
    return '%s';

Mike Little

More information about the wp-hackers mailing list