Documentation

View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

Available since: 1.6

searchwp_custom_field_{name}

View Parameters »

Note: Use of this hook will require a manual reindex

This filter behaves exactly like searchwp_custom_fields but is applied to a single Custom Field only. It is applied for every Custom Field for every post during indexing. Using this filter is equal to using searchwp_custom_fields and checking for a specific Custom Field there.

For full documentation, see searchwp_custom_fields.

Parameters

Parameter Type Description
$customFieldValue Mixed

The original Custom Field value

$post Object

The Post object being indexed

Fix Search on Your Site. No Coding Required!

Now you can utilize all of the content that's gone unrecognized by native WordPress search instantly with SearchWP

Get SearchWP