Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BBP_Topics_Admin::setup_actions()
Setup the admin hooks, actions and filters
Description Description
Source Source
File: includes/admin/topics.php
private function setup_actions() { // Messages add_filter( 'post_updated_messages', array( $this, 'updated_messages' ) ); // Topic bulk actions, added in WordPress 4.7, see #WP16031. if ( bbp_get_major_wp_version() >= 4.7 ) { add_filter( 'bulk_actions-edit-topic', array( $this, 'bulk_actions' ) ); add_filter( 'handle_bulk_actions-edit-topic', array( $this, 'handle_bulk_actions' ), 10, 3 ); add_filter( 'bulk_post_updated_messages', array( $this, 'bulk_post_updated_messages' ), 10, 2 ); } // Topic column headers. add_filter( 'manage_' . $this->post_type . '_posts_columns', array( $this, 'column_headers' ) ); // Topic columns (in post row) add_action( 'manage_' . $this->post_type . '_posts_custom_column', array( $this, 'column_data' ), 10, 2 ); add_filter( 'post_row_actions', array( $this, 'row_actions' ), 10, 2 ); // Topic meta-box actions add_action( 'add_meta_boxes', array( $this, 'attributes_metabox' ) ); add_action( 'add_meta_boxes', array( $this, 'author_metabox' ) ); add_action( 'add_meta_boxes', array( $this, 'replies_metabox' ) ); add_action( 'add_meta_boxes', array( $this, 'engagements_metabox' ) ); add_action( 'add_meta_boxes', array( $this, 'favorites_metabox' ) ); add_action( 'add_meta_boxes', array( $this, 'subscriptions_metabox' ) ); add_action( 'add_meta_boxes', array( $this, 'comments_metabox' ) ); add_action( 'save_post', array( $this, 'save_meta_boxes' ) ); // Check if there are any bbp_toggle_topic_* requests on admin_init, also have a message displayed add_action( 'load-edit.php', array( $this, 'toggle_topic' ) ); add_action( 'load-edit.php', array( $this, 'toggle_topic_notice' ) ); // Add ability to filter topics and replies per forum add_filter( 'restrict_manage_posts', array( $this, 'filter_dropdown' ) ); add_filter( 'bbp_request', array( $this, 'filter_post_rows' ) ); // Empty spam add_filter( 'manage_posts_extra_tablenav', array( $this, 'filter_empty_spam' ) ); // Contextual Help add_action( 'load-edit.php', array( $this, 'edit_help' ) ); add_action( 'load-post.php', array( $this, 'new_help' ) ); add_action( 'load-post-new.php', array( $this, 'new_help' ) ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | bbPress (r6101) Added bulk actions |
2.0.0 | Introduced. |