WPDev.one
Core Function
View Source on Trac ↗

remove_accents()

remove_accents( mixed $text, mixed $locale = '' )

Converts all accent characters to ASCII characters.

Parameters 2 required

Name / Type Description
$text
string

Text that might have accent characters.

Required
string

$locale Optional. The locale to use for accent removal. Some character replacements depend on the locale being used (e.g. 'de_DE'). Defaults to the current locale.

Required

Return Value

(string)
Filtered string with replaced "nice" characters.

Function Information

Since Version
1.2.1
Source File
wp-includes/formatting.php
Advertisement