Add user_search_columns filter to WP_User_Query::prepare_query().

props aaroncampbell.
fixes #16366.



git-svn-id: http://core.svn.wordpress.org/trunk@24056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-04-22 20:37:50 +00:00
parent feffc2716f
commit 8131644bf6
1 changed files with 2 additions and 0 deletions

View File

@ -480,6 +480,8 @@ class WP_User_Query {
$search_columns = array('user_login', 'user_nicename');
}
$search_columns = apply_filters( 'user_search_columns', $search_columns, $search, $this );
$this->query_where .= $this->get_search_sql( $search, $search_columns, $wild );
}