Using WordPress ‘like_escape()’ PHP function Written by Adrian Gordon WordPress Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described.
WordPress – How to use LIKE in WPDB PREPARE SQL statements Written by Adrian Gordon WordPress Learn how to properly use the LIKE operator in WordPress's wpdb prepare statements while avoiding SQL injection vulnerabilities. Discover two methods to handle wildcards and untrusted variables safely.