It seems I have found it in the function se_search_attachments :
function se_search_attachments( $where ) {
global $wpdb;
if ( !empty( $this->query_instance->query_vars['s'] ) ) {
$where = str_replace( '"', '\'', $where );
if ( !$this->wp_ver28 ) {
$where = str_replace( " AND (post_status = 'publish'", " AND (post_status = 'publish' OR post_type != 'attachment'", $where );
$where = str_replace( "AND post_type != 'attachment'", "", $where );
}
else {
$where = str_replace( " AND ($wpdb->posts.post_status = 'publish'", " AND ($wpdb->posts.post_status = 'publish' <strong>OR $wpdb->posts.post_mime_type = 'application/pdf' OR $wpdb->posts.post_mime_type = 'application/msword'</strong> ", $where );
$where = str_replace( "AND $wpdb->posts.post_type != 'attachment'", "", $where );
}
}
$this->se_log( "attachments where: ".$where );
return $where;
}
it would be so great to have an option like “Include/Exclude post_mime pdf or word or image ” instead of me manually editing it