Warning: This function has been deprecated. Use wp_slash() instead.

addslashes_strings_only( mixed $value )

Adds slashes only if the provided value is a string.


Description Description

Top ↑

See also See also


Top ↑

Parameters Parameters

$value

(mixed) (Required)


Top ↑

Return Return

(mixed)


Top ↑

Source Source

File: wp-includes/deprecated.php

function addslashes_strings_only( $value ) {
	return is_string( $value ) ? addslashes( $value ) : $value;
}

Top ↑

Changelog Changelog

Changelog
Version Description
5.6.0 This function has been deprecated. Use wp_slash() instead.
5.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.