BBP_Topics_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/topics.php
932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 | 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.