Changeset 5268 for trunk/includes/admin/admin.php
- Timestamp:
- 02/10/2014 04:48:36 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/includes/admin/admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/admin/admin.php
r5255 r5268 137 137 /** General Actions ***************************************************/ 138 138 139 add_action( 'bbp_admin_menu', array( $this, 'admin_menus' ) ); // Add menu item to settings menu 140 add_action( 'bbp_admin_head', array( $this, 'admin_head' ) ); // Add some general styling to the admin area 141 add_action( 'bbp_admin_notices', array( $this, 'activation_notice' ) ); // Add notice if not using a bbPress theme 142 add_action( 'bbp_register_admin_style', array( $this, 'register_admin_style' ) ); // Add green admin style 143 add_action( 'bbp_register_admin_settings', array( $this, 'register_admin_settings' ) ); // Add settings 144 add_action( 'bbp_activation', array( $this, 'new_install' ) ); // Add menu item to settings menu 145 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Add enqueued CSS 146 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Add enqueued JS 147 add_action( 'wp_dashboard_setup', array( $this, 'dashboard_widget_right_now' ) ); // Forums 'Right now' Dashboard widget 148 add_action( 'admin_bar_menu', array( $this, 'admin_bar_about_link' ), 15 ); // Add a link to bbPress about page to the admin bar 139 add_action( 'bbp_admin_menu', array( $this, 'admin_menus' ) ); // Add menu item to settings menu 140 add_action( 'bbp_admin_head', array( $this, 'admin_head' ) ); // Add some general styling to the admin area 141 add_action( 'bbp_admin_notices', array( $this, 'activation_notice' ) ); // Add notice if not using a bbPress theme 142 add_action( 'bbp_register_admin_style', array( $this, 'register_admin_style' ) ); // Add green admin style 143 add_action( 'bbp_register_admin_settings', array( $this, 'register_admin_settings' ) ); // Add settings 144 add_action( 'bbp_activation', array( $this, 'new_install' ) ); // Add menu item to settings menu 145 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_styles' ) ); // Add enqueued CSS 146 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); // Add enqueued JS 147 add_action( 'admin_bar_menu', array( $this, 'admin_bar_about_link' ), 15 ); // Add a link to bbPress about page to the admin bar 149 148 150 149 /** Ajax **************************************************************/ … … 520 519 // Add a few links to the existing links array 521 520 return array_merge( $links, $new_links ); 522 }523 524 /**525 * Add the 'Right now in Forums' dashboard widget526 *527 * @since bbPress (r2770)528 *529 * @uses wp_add_dashboard_widget() To add the dashboard widget530 */531 public static function dashboard_widget_right_now() {532 wp_add_dashboard_widget( 'bbp-dashboard-right-now', __( 'Right Now in Forums', 'bbpress' ), 'bbp_dashboard_widget_right_now' );533 521 } 534 522
Note: See TracChangeset
for help on using the changeset viewer.