Changeset 13880
- Timestamp:
- 06/01/2024 04:34:10 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-actions.php
r13471 r13880 38 38 * v--WordPress Actions v--BuddyPress Sub-actions 39 39 */ 40 add_action( 'admin_menu', 'bp_admin_menu');41 add_action( 'admin_init', 'bp_admin_init');42 add_action( 'admin_head', 'bp_admin_head');43 add_action( 'admin_notices', 'bp_admin_notices');44 add_action( 'admin_enqueue_scripts', 'bp_admin_enqueue_scripts');45 add_action( 'customize_controls_enqueue_scripts', 'bp_admin_enqueue_scripts', 8 );46 add_action( 'network_admin_menu', 'bp_admin_menu');47 add_action( 'custom_menu_order', 'bp_admin_custom_menu_order');48 add_action( 'menu_order', 'bp_admin_menu_order');49 add_action( 'bp_insert_site', 'bp_new_site',10, 6 );40 add_action( 'admin_menu', 'bp_admin_menu' ); 41 add_action( 'admin_init', 'bp_admin_init' ); 42 add_action( 'admin_head', 'bp_admin_head' ); 43 add_action( 'admin_notices', 'bp_admin_notices' ); 44 add_action( 'admin_enqueue_scripts', 'bp_admin_enqueue_scripts' ); 45 add_action( 'customize_controls_enqueue_scripts', 'bp_admin_enqueue_scripts', 8 ); 46 add_action( 'network_admin_menu', 'bp_admin_menu' ); 47 add_action( 'custom_menu_order', 'bp_admin_custom_menu_order' ); 48 add_action( 'menu_order', 'bp_admin_menu_order' ); 49 add_action( 'bp_insert_site', 'bp_new_site', 10, 6 ); 50 50 51 51 // Hook on to admin_init. 52 add_action( 'bp_admin_init', 'bp_setup_updater', 1000 );52 add_action( 'bp_admin_init', 'bp_setup_updater', 1000 ); 53 53 add_action( 'bp_admin_init', 'bp_core_activation_notice', 1010 ); 54 add_action( 'bp_admin_init', 'bp_register_importers' );55 add_action( 'bp_admin_init', 'bp_register_admin_style' );56 add_action( 'bp_admin_init', 'bp_register_admin_settings' );57 add_action( 'bp_admin_init', 'bp_do_activation_redirect', 1 );54 add_action( 'bp_admin_init', 'bp_register_importers' ); 55 add_action( 'bp_admin_init', 'bp_register_admin_style' ); 56 add_action( 'bp_admin_init', 'bp_register_admin_settings' ); 57 add_action( 'bp_admin_init', 'bp_do_activation_redirect', 1 ); 58 58 add_action( 'bp_admin_init', 'bp_core_set_ajax_uri_globals', 2 ); 59 59 … … 77 77 78 78 // Bail if plugin is not network activated. 79 if ( ! is_plugin_active_for_network( buddypress()->basename ) ) 79 if ( ! is_plugin_active_for_network( buddypress()->basename ) ) { 80 80 return; 81 } 81 82 82 83 // Switch to the new blog. … … 107 108 * 108 109 * @since 1.7.0 109 *110 110 */ 111 111 function bp_admin_init() { … … 123 123 * 124 124 * @since 1.7.0 125 *126 125 */ 127 126 function bp_admin_menu() { … … 139 138 * 140 139 * @since 1.7.0 141 *142 140 */ 143 141 function bp_admin_head() { … … 155 153 * 156 154 * @since 1.7.0 157 *158 155 */ 159 156 function bp_admin_notices() { … … 172 169 * @since 1.7.0 173 170 * 174 * @param string $hook_suffix The current admin page, passed to 175 * 'admin_enqueue_scripts'. 171 * @param string $hook_suffix The current admin page, passed to admin_enqueue_scripts. 176 172 */ 177 173 function bp_admin_enqueue_scripts( $hook_suffix = '' ) { … … 191 187 * 192 188 * @since 1.7.0 193 *194 189 */ 195 190 function bp_register_importers() { … … 209 204 * 210 205 * @since 1.7.0 211 *212 206 */ 213 207 function bp_register_admin_style() { … … 225 219 * 226 220 * @since 1.7.0 227 *228 221 */ 229 222 function bp_register_admin_settings() {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)