sweeppress_db_query_revisions_post_statuses
sweeppress_db_query_revisions_post_statuses
Control the list of post statuses used to run the PostRevisions sweeper. By default, it is only ‘publish’ status. The plugin will strip the ‘draft’ status if included.
This filter has 1 argument.
Arguments
- $post_statuses: return array with post statuses. Default: array(‘publish’)
Example
Add ‘spam’ and ‘trash’ statuses.
add_filter('sweeppress_db_query_revisions_post_statuses', 'custom__sweeppress_db_query_revisions_post_statuses'); function custom__sweeppress_db_query_revisions_post_statuses($post_statuses) { $post_statuses[] = 'spam'; $post_statuses[] = 'trash'; return $post_statuses; }