Change Zero Width Non-joiner character with – in slug
-
Hi, I deleted the Replace Zero Width Non-joiner from the title with the following code, but it does not apply to the content address.
How do I change the Replace Zero Width Non-joiner with -?function add_to_page_titles($title) { $title = str_replace("\xE2\x80\x8C", " ", $title); return $title; } add_filter('the_title', 'add_to_page_titles'); add_filter('wpseo_title', 'add_to_page_titles');
Title: ????? ????? ?? ???? ?? ???? ????? ? ??????????????? ????? ????? ???????? Convert to: ????? ????? ?? ???? ?? ???? ????? ? ?????? ?????? ? ????? ????? ?? ????? ---------------- Content URL: ?????-????-??-????-??-????-?????-?-?????????????-?????-?????-??????? Become: ?????-????-??-????-??-????-?????-?-??????-??????-?-?????-?????-???????
The goal is to replace the Replace Zero Width Non -joiner character with - in the slug address. https://www.utf8-chartable.de/unicode-utf8-table.pl?start=8192&number=128&utf8=string-literal Zero Width Non-joiner \xe2\x80\x8c
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Change Zero Width Non-joiner character with – in slug’ is closed to new replies.