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_Replies_Admin::setup_actions()
Setup the admin hooks, actions and filters
Description
Source
File: bp-forums/admin/replies.php
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | 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' ) ); // Reply column headers. add_filter( 'manage_' . $this ->post_type . '_posts_columns' , array ( $this , 'column_headers' ) ); // Reply 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 ); // Reply metabox actions add_action( 'add_meta_boxes' , array ( $this , 'attributes_metabox' ) ); add_action( 'save_post' , array ( $this , 'attributes_metabox_save' ) ); // Check if there are any bbp_toggle_reply_* requests on admin_init, also have a message displayed add_action( 'load-edit.php' , array ( $this , 'toggle_reply' ) ); add_action( 'admin_notices' , array ( $this , 'toggle_reply_notice' ) ); // Anonymous metabox actions add_action( 'add_meta_boxes' , array ( $this , 'author_metabox' ) ); // 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' ) ); // 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
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.