BBP_Topics_Admin::filter_empty_spam()
Add “Empty Spam” button for moderators
Description Description
Source Source
File: includes/admin/topics.php
public function filter_empty_spam() { // Bail if not viewing spam if ( empty( $_GET['post_status'] ) || ( bbp_get_spam_status_id() !== $_GET['post_status'] ) && current_user_can( 'moderate' ) ) { return; } ?> <div class="alignleft actions"><?php // Output the nonce & button wp_nonce_field( 'bulk-destroy', '_destroy_nonce' ); submit_button( esc_attr__( 'Empty Spam', 'bbpress' ), 'button-secondary apply', 'delete_all', false ); ?></div><?php }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |