apply_filters( 'relevanssi_valid_status', array $valid_statuses )

This filter hook controls which post statuses Relevanssi indexes.


(array) An array of post status strings. The default value is publish, draft, private, pending, and future.

More information

Relevanssi by default indexes most of the posts on your site, even if visitors never see private or unpublished posts in the results. You can control what goes in the index with this filter hook. You can remove existing post statuses from the list or add new custom statuses.