I’ve a search type, and im attempting to have it have the ability to search each the essential consumer subject (user_email, display_name, and many others), plus 1 different customized consumer meta key referred to as “clinic”
heres the argument i’ve to this point
$args = array(
'orderby' => 'display_name',
'meta_key' => 'course',
'fields' => 'all',
'search' => $search,
'meta_query' => array(
array(
'key' => 'clinic',
'worth' => $search,
'examine' => 'LIKE'
)
)
);
Additionally, unsure if i’ve this arrange appropriately, however i additionally want the question to verify if the meta key “course” exists, no matter its worth (however that is secondary, and could be eliminated if it would trigger issues, im principally involved with it looking out the clinic meta key)