Skip to content

mc_search_fields

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

Customize admin search MATCH columns when db is MyISAM.

Auto-generated Example

add_filter(
   'mc_search_fields',
    function( {string} $fields ) {
        // Your code here.
        return $fields;
    }
);

Parameters

  • {string} $fields Comma-separated list of column names.

Returns

{string}

Files

apply_filters( 'mc_search_fields', 'event_title,event_desc,event_short,event_registration' )
apply_filters( 'mc_search_fields', 'location_label' )
apply_filters( 'mc_search_fields', 'location_label,location_city,location_state,location_region,location_country,location_street,location_street2,location_phone' )

← All Hooks

Clone this wiki locally