wpdb::escape_by_ref( string $data )

In this article

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

Parameters

$datastringrequired
String to escape.

Source

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

Changelog

VersionDescription
2.3.0Introduced.

User Contributed Notes

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