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_Forums_Admin::setup_actions()
Setup the admin hooks, actions and filters
Description
Source
File: bp-forums/admin/forums.php
private function setup_actions() {
// Add some general styling to the admin area
add_action( 'bbp_admin_head', array( $this, 'admin_head' ) );
// Messages
add_filter( 'post_updated_messages', array( $this, 'updated_messages' ) );
// Metabox actions
add_action( 'add_meta_boxes', array( $this, 'attributes_metabox' ) );
add_action( 'save_post', array( $this, 'attributes_metabox_save' ) );
// Column headers.
add_filter( 'manage_' . $this->post_type . '_posts_columns', array( $this, 'column_headers' ) );
// Columns (in page row)
add_action( 'manage_' . $this->post_type . '_posts_custom_column', array( $this, 'column_data' ), 10, 2 );
add_filter( 'page_row_actions', array( $this, 'row_actions' ), 10, 2 );
// 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' ) );
// Set forum states
add_filter( 'display_post_states', array( $this, 'bbp_set_hidden_forum_states' ), 10, 2 );
}
Changelog
| Version | Description |
|---|---|
| bbPress (r2646) | 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.