apply_filters( 'findstr_indexable_fields_loop_to_index', $fields array, $field object, $post WP_Post )
add_filter( 'findstr_indexable_fields_loop_to_index', $fields array, $field object, $post WP_Post )
This filter runs for each field to index based on indexable fields settings.
It allows to modify the fields to index.
Note: $fields does not contain taxonomies and permalink, language and featured_image are added later.
This filter applies in a loop, $fields array is not fully built yet.
Parameters
| Name | Type | Description |
|---|---|---|
$fields | array | the fields to index |
$field | object | the field object |
$post | WP_Post | the post object |
- Source
Returns:
$fields the fields to index
- Type:
- array