wpdb::remove_placeholder_escape()publicWP 4.8.3

Removes the placeholder escape strings from a query.

Method of the class: wpdb{}

No Hooks.

Return

String. The query with the placeholder removed.

Usage

global $wpdb;
$wpdb->remove_placeholder_escape( $query );
$query(string) (required)
The query from which the placeholder will be removed.

Changelog

Since 4.8.3 Introduced.

wpdb::remove_placeholder_escape() code WP 6.5.2

public function remove_placeholder_escape( $query ) {
	return str_replace( $this->placeholder_escape(), '%', $query );
}