Hi Andy,
In this thread you provided me with this adjusted code to get the search options behave as it should in my case.
Here is the final code provided:
function trusted_woocommerce_search_form() {
get_search_form();
}
function trusted_custom_search_filter( $query ) {
if ( $query->is_search ) {
$query->set( 'post_type', array( 'recipe', 'post', 'product', 'page' ) );
$query->set( 'tax_query', array(
array(
'taxonomy' => 'product_visibility',
'field' => 'name',
'terms' => 'exclude-from-search',
'operator' => 'NOT IN',
)
) );
}
return $query;
}
add_filter( 'pre_get_posts', 'trusted_custom_search_filter' );
The issue is right now that when this code is active te table of data export requests in the Privacy options of WordPress 4.9.6. are not showing. In the screenshot you can see there must be two of them but the table says, nothing found.

Will you please look into it?
Thanks in advance.
Best wishes,
Adri