wpdb::escape_by_ref
Escapes content by reference for insertion into the database, for security.
Method of the class: wpdb{}
No Hooks.
Returns
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 7.0
public function escape_by_ref( &$data ) {
if ( ! is_float( $data ) ) {
$data = $this->_real_escape( $data );
}
}