wordpress / latest / classes / wpdb / escape_by_ref.html

wpdb::escape_by_ref( string $string )

Escapes content by reference for insertion into the database, for security.

Parameters

$string string Required
String to escape.

Source

File: wp-includes/class-wpdb.php. View all references

public function escape_by_ref( &$string ) {
	if ( ! is_float( $string ) ) {
		$string = $this->_real_escape( $string );
	}
}

Uses

Uses Description

Changelog

Version Description
2.3.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wpdb/escape_by_ref