Skip to content

mc_custom_user_select

Joe Dolson edited this page May 15, 2026 · 4 revisions

Filter the list of users used to select authors or hosts.

Auto-generated Example

add_filter(
   'mc_custom_user_select',
    function(
        {string} $output,
        {string|int} $selected,
        {string} $group,
        {string} $return
    ) {
        // Your code here.
        return $output;
    },
    10,
    4
);

Parameters

  • {string} $output Output that should replace data.
  • {string|int} $selected The currently selected user.
  • {string} $group Whether this function is returning hosts or authors.
  • {string} $return Whether this should return fully realized values or an array of data.

Returns

{string|array}

Files

apply_filters( 'mc_custom_user_select', '', $selected, $group, $return_type )

← All Hooks

Clone this wiki locally