W3cubDocs

/WordPress

wpdb::remove_placeholder_escape( string $query ): string

Removes the placeholder escape strings from a query.

Parameters

$querystringrequired
The query from which the placeholder will be removed.

Return

string The query with the placeholder removed.

Source

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

Changelog

Version Description
4.8.3 Introduced.

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