Changeset 529 for sites/trunk/buddypress.org/public_html/wp-content/plugins/bbpress-org/bbpress-dot-org.php
- Timestamp:
- 04/08/2014 01:19:58 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/plugins/bbpress-org/bbpress-dot-org.php
r447 r529 12 12 include_once( plugin_dir_path( __FILE__ ) . 'toolbar.php' ); 13 13 include_once( plugin_dir_path( __FILE__ ) . 'tools.php' ); 14 15 /**16 * Remove the bbPress dashboard widget, since it uses get_users() and causes17 * major slow-down.18 *19 * @author johnjamesjacoby20 * @since 1.021 * @param type $admin22 */23 function bbporg_remove_dashboard_widget( $admin ) {24 remove_action( 'wp_dashboard_setup', array( $admin, 'dashboard_widget_right_now' ) );25 }26 add_action( 'bbp_admin_loaded', 'bbporg_remove_dashboard_widget' );27 14 28 15 /**
Note: See TracChangeset
for help on using the changeset viewer.