BBP_Replies_Admin::filter_dropdown()
Add forum dropdown to topic and reply list table filters
Description
Return
(bool) False. If post type is not topic or reply
Source
File: bp-forums/admin/replies.php
840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 | public function filter_dropdown() { if ( $this ->bail() ) return ; // Add Empty Spam button if ( ! empty ( $_GET [ 'post_status' ] ) && ( bbp_get_spam_status_id() === $_GET [ 'post_status' ] ) && current_user_can( 'moderate' ) ) { wp_nonce_field( 'bulk-destroy' , '_destroy_nonce' ); $title = esc_attr__( 'Empty Spam' , 'buddyboss' ); submit_button( $title , 'button-secondary apply' , 'delete_all' , false ); } // Get which forum is selected $selected = ! empty ( $_GET [ 'bbp_forum_id' ] ) ? $_GET [ 'bbp_forum_id' ] : '' ; // Show the forums dropdown bbp_dropdown( array ( 'selected' => $selected , 'show_none' => __( 'In all forums' , 'buddyboss' ) ) ); } |
Changelog
Version | Description |
---|---|
bbPress (r2991) | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.