Skip to content

Instantly share code, notes, and snippets.

@JarrydLong
Last active June 22, 2023 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JarrydLong/50d9e233ddb83f291839e978868459a9 to your computer and use it in GitHub Desktop.
Save JarrydLong/50d9e233ddb83f291839e978868459a9 to your computer and use it in GitHub Desktop.
<?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