WP_Term_Query::get_search_sql( string $string )
Used internally to generate a SQL string related to the ‘search’ parameter.
Description Description
Parameters Parameters
- $string
-
(string) (Required)
Return Return
(string)
Source Source
File: wp-includes/class-wp-term-query.php
protected function get_search_sql( $string ) { global $wpdb; $like = '%' . $wpdb->esc_like( $string ) . '%'; return $wpdb->prepare( '((t.name LIKE %s) OR (t.slug LIKE %s))', $like, $like ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |