Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

_wp_iso_convert() WordPress Function

The wp_iso_convert() function is used to convert a string to a valid ISO-8859-1 string. This function is useful for strings that contain non-ASCII characters.

_wp_iso_convert( array $match ) #

Helper function to convert hex encoded chars to ASCII.


Parameters

$match

(array)(Required)The preg_replace_callback matches array.


Top ↑

Return

(string) Converted chars.


Top ↑

Source

File: wp-includes/formatting.php

function _wp_iso_convert( $match ) {
	return chr( hexdec( strtolower( $match[1] ) ) );
}

Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.