Skip to content

mc_search_fields

github-actions[bot] edited this page Jun 14, 2026 · 7 revisions

Customize the MATCH fields for a MyISAM boolean search query.

Auto-generated Example

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

Parameters

  • string $values Comma-separated list of columns.

Returns

string

Files

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' )
apply_filters( 'mc_search_fields', 'event_title,event_desc,event_short,event_registration' )

← All Hooks

Clone this wiki locally