WordPress at a glance
function is not described

stripslashes_from_strings_only() WP 4.4.0

Callback function for stripslashes_deep() which strips slashes from strings.

No Hooks.

Возвращает

Mixed. The stripped value.

Usage

stripslashes_from_strings_only( $value );
$value(mixed) (required)
The array or string to be stripped.

Список изменений

С версии 4.4.0 Введена.

Code of stripslashes_from_strings_only() WP 5.5.1

wp-includes/formatting.php
<?php
function stripslashes_from_strings_only( $value ) {
	return is_string( $value ) ? stripslashes( $value ) : $value;
}