BBP_Replies_Admin::bulk_actions( array $actions )
Add spam/unspam bulk actions to the bulk action dropdown.
Description Description
Parameters Parameters
- $actions
-
(Required) The list of bulk actions.
Return Return
(array) The filtered list of bulk actions.
Source Source
File: includes/admin/replies.php
public function bulk_actions( $actions ) { if ( current_user_can( 'moderate' ) ) { if ( bbp_get_spam_status_id() === get_query_var( 'post_status' ) ) { $actions['unspam'] = esc_html__( 'Unspam', 'bbpress' ); } else { $actions['spam'] = esc_html__( 'Spam', 'bbpress' ); } } return $actions; }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |