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_Admin::setup_actions()
Setup the admin hooks, actions and filters
Description
Source
File: bp-forums/admin/admin.php
private function setup_actions() { // Bail to prevent interfering with the deactivation process if ( bbp_is_deactivation() ) return; /** General Actions ***************************************************/ add_action( 'bbp_admin_menu', array( $this, 'admin_menus' ) ); // Add menu item to settings menu add_action( 'bbp_admin_head', array( $this, 'admin_head' ) ); // Add some general styling to the admin area add_action( 'bbp_admin_notices', array( $this, 'activation_notice' ) ); // Add notice if not using a Forums theme add_action( 'bbp_register_admin_style', array( $this, 'register_admin_style' ) ); // Add green admin style add_action( 'bbp_activation', array( $this, 'new_install' ) ); // Add menu item to settings menu // add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Add enqueued CSS add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Add enqueued JS add_action( 'wp_dashboard_setup', array( $this, 'dashboard_widget_right_now' ) ); // Forums 'Right now' Dashboard widget add_action( 'admin_bar_menu', array( $this, 'admin_bar_about_link' ), 15 ); // Add a link to Forums about page to the admin bar /** Ajax **************************************************************/ // No _nopriv_ equivalent - users must be logged in add_action( 'wp_ajax_bbp_suggest_topic', array( $this, 'suggest_topic' ) ); add_action( 'wp_ajax_bbp_suggest_reply', array( $this, 'suggest_reply' ) ); add_action( 'wp_ajax_bbp_suggest_user', array( $this, 'suggest_user' ) ); /** Filters ***********************************************************/ // Modify Forums' admin links add_filter( 'plugin_action_links', array( $this, 'modify_plugin_action_links' ), 10, 2 ); // Map settings capabilities add_filter( 'bbp_map_meta_caps', array( $this, 'map_settings_meta_caps' ), 10, 4 ); // Hide the theme compat package selection add_filter( 'bbp_admin_get_settings_sections', array( $this, 'hide_theme_compat_packages' ) ); // Allow keymasters to save forums settings add_filter( 'option_page_capability_bbpress', array( $this, 'option_page_capability_bbpress' ) ); // Remove "Comments" & "Discussion" metabox from bbp_get_reply_post_type() custom post type. add_action( 'admin_init', array( $this, 'bbp_remove_comments_discussion_meta_boxes' ), 9999 ); /** Network Admin *****************************************************/ // Add menu item to settings menu add_action( 'network_admin_menu', array( $this, 'network_admin_menus' ) ); /** Dependencies ******************************************************/ // Allow plugins to modify these actions do_action_ref_array( 'bbp_admin_loaded', array( &$this ) ); }
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.