WPDev.one
Core Function
View Source on Trac ↗

like_escape()

like_escape( mixed $text )

Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described.

Parameters 1 required

Name / Type Description
$text
string

The text to be escaped.

Required

Return Value

(string)
text, safe for inclusion in LIKE query.

Function Information

Since Version
2.5.0
Source File
wp-includes/deprecated.php
Advertisement