apply_filters( 'relevanssi_valid_admin_status', array $valid_statuses )
This filter hook filters the post statuses that are allowed in admin searches.
Parameters
$valid_statuses
(array) An array of status strings. The default value is draft
, pending
, and future
.
More information
Relevanssi searches done in the admin context always include public or private posts. You can use this filter hook to control which other post statuses are allowed. The default setting is to allow drafts, pending posts and scheduled posts. You generally don’t want to remove any of these, but if you have a custom post status you wish to include in the search, you can do that with this filter hook:
add_filter( 'relevanssi_valid_admin_status', function( $valid_statuses ) { $valid_statuses[] = 'queued'; return $valid_statuses; } );