mc_custom_user_select - joedolson/my-calendar GitHub Wiki
Filter the list of users used to select authors or hosts.
add_filter(
'mc_custom_user_select',
function(
string $output,
string|int $selected,
string $group,
string $return
) {
// Your code here.
return $output;
},
10,
4
);-
string$outputOutput that should replace data. -
string|int$selectedThe currently selected user. -
string$groupWhether this function is returning hosts or authors. -
string$returnWhether this should return fully realized values or an array of data.
string|array
apply_filters( 'mc_custom_user_select', '', $selected, $group, $return_type )