Last active
June 22, 2023 11:43
-
-
Save JarrydLong/50d9e233ddb83f291839e978868459a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //do not copy | |
function mypmpro_member_directory_sql_search_where( $query, $s ) { | |
$sql_search_where = " | |
AND ( | |
u.display_name LIKE '%" . esc_sql( $s ) . "%' | |
) | |
"; | |
} | |
add_filter( 'pmpro_member_directory_sql_search_where', 'mypmpro_member_directory_sql_search_where', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment