wpdb::escape_by_ref()
Escapes content by reference for insertion into the database, for security.
Method of the class: wpdb{}
No Hooks.
Return
null
. Nothing (null).
Usage
global $wpdb; $wpdb->escape_by_ref( $data );
- $data(string) (required) (passed by reference — &)
- String to escape.
Changelog
Since 2.3.0 | Introduced. |
wpdb::escape_by_ref() wpdb::escape by ref code WP 6.6.2
public function escape_by_ref( &$data ) { if ( ! is_float( $data ) ) { $data = $this->_real_escape( $data ); } }