Changeset 9543
- Timestamp:
- 02/24/2015 03:00:07 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/admin/bp-core-admin-actions.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-actions.php
r9503 r9543 2 2 3 3 /** 4 * BuddyPress Admin Actions 4 * BuddyPress Admin Actions. 5 5 * 6 6 * This file contains the actions that are used through-out BuddyPress Admin. They … … 8 8 * understand at a glance the order in which things occur. 9 9 * 10 * There are a few common places that additional actions can currently be found 10 * There are a few common places that additional actions can currently be found. 11 11 * 12 12 * - BuddyPress: In {@link BuddyPress::setup_actions()} in BuddyPress.php … … 23 23 24 24 /** 25 * Attach BuddyPress to WordPress 25 * Attach BuddyPress to WordPress. 26 26 * 27 27 * BuddyPress uses its own internal actions to help aid in third-party plugin … … 61 61 /** 62 62 * When a new site is created in a multisite installation, run the activation 63 * routine on that site 64 * 65 * @since BuddyPress (1.7 )63 * routine on that site. 64 * 65 * @since BuddyPress (1.7.0) 66 66 * 67 67 * @param int $blog_id … … 70 70 * @param string $path 71 71 * @param int $site_id 72 * @param array ()$meta72 * @param array $meta 73 73 */ 74 74 function bp_new_site( $blog_id, $user_id, $domain, $path, $site_id, $meta ) { … … 81 81 switch_to_blog( $blog_id ); 82 82 83 // Do the BuddyPress activation routine 83 /** 84 * Fires the activation routine for a new site created in a multisite installation. 85 * 86 * @since BuddyPress (1.7.0) 87 * 88 * @param int $blog_id ID of the blog being installed to. 89 * @param int $user_id ID of the user the install is for. 90 * @param string $domain Domain to use with the install. 91 * @param string $path Path to use with the install. 92 * @param int $site_id ID of the site being installed to. 93 * @param array $meta Metadata to use with the site creation. 94 */ 84 95 do_action( 'bp_new_site', $blog_id, $user_id, $domain, $path, $site_id, $meta ); 85 96 … … 91 102 92 103 /** 93 * Piggy back admin_init action 94 * 95 * @since BuddyPress (1.7 )96 * @uses do_action() Calls 'bp_admin_init' 104 * Piggy back admin_init action. 105 * 106 * @since BuddyPress (1.7.0) 107 * @uses do_action() Calls 'bp_admin_init'. 97 108 */ 98 109 function bp_admin_init() { 110 111 /** 112 * Fires inside the bp_admin_init function. 113 * 114 * @since BuddyPress (1.6.0) 115 */ 99 116 do_action( 'bp_admin_init' ); 100 117 } 101 118 102 119 /** 103 * Piggy back admin_menu action 104 * 105 * @since BuddyPress (1.7 )106 * @uses do_action() Calls 'bp_admin_menu' 120 * Piggy back admin_menu action. 121 * 122 * @since BuddyPress (1.7.0) 123 * @uses do_action() Calls 'bp_admin_menu'. 107 124 */ 108 125 function bp_admin_menu() { 126 127 /** 128 * Fires inside the bp_admin_menu function. 129 * 130 * @since BuddyPress (1.7.0) 131 */ 109 132 do_action( 'bp_admin_menu' ); 110 133 } 111 134 112 135 /** 113 * Piggy back admin_head action 114 * 115 * @since BuddyPress (1.7 )116 * @uses do_action() Calls 'bp_admin_head' 136 * Piggy back admin_head action. 137 * 138 * @since BuddyPress (1.7.0) 139 * @uses do_action() Calls 'bp_admin_head'. 117 140 */ 118 141 function bp_admin_head() { 142 143 /** 144 * Fires inside the bp_admin_head function. 145 * 146 * @since BuddyPress (1.6.0) 147 */ 119 148 do_action( 'bp_admin_head' ); 120 149 } 121 150 122 151 /** 123 * Piggy back admin_notices action 124 * 125 * @since BuddyPress (1.7 )126 * @uses do_action() Calls 'bp_admin_notices' 152 * Piggy back admin_notices action. 153 * 154 * @since BuddyPress (1.7.0) 155 * @uses do_action() Calls 'bp_admin_notices'. 127 156 */ 128 157 function bp_admin_notices() { 158 159 /** 160 * Fires inside the bp_admin_notices function. 161 * 162 * @since BuddyPress (1.5.0) 163 */ 129 164 do_action( 'bp_admin_notices' ); 130 165 } … … 138 173 * 139 174 * @param string $hook_suffix The current admin page, passed to 140 * 'admin_enqueue_scripts'.175 * 'admin_enqueue_scripts'. 141 176 */ 142 177 function bp_admin_enqueue_scripts( $hook_suffix = '' ) { 178 179 /** 180 * Fires inside the bp_admin_enqueue_scripts function. 181 * 182 * @since BuddyPress (1.7.0) 183 * 184 * @param string $hook_suffix The current admin page, passed to admin_enqueue_scripts. 185 */ 143 186 do_action( 'bp_admin_enqueue_scripts', $hook_suffix ); 144 187 } 145 188 146 189 /** 147 * Dedicated action to register BuddyPress importers 148 * 149 * @since BuddyPress (1.7 )150 * @uses do_action() Calls 'bp_admin_notices' 190 * Dedicated action to register BuddyPress importers. 191 * 192 * @since BuddyPress (1.7.0) 193 * @uses do_action() Calls 'bp_admin_notices'. 151 194 */ 152 195 function bp_register_importers() { 196 197 /** 198 * Fires inside the bp_register_importers function. 199 * 200 * Used to register a BuddyPress importer. 201 * 202 * @since BuddyPress (1.7.0) 203 */ 153 204 do_action( 'bp_register_importers' ); 154 205 } 155 206 156 207 /** 157 * Dedicated action to register admin styles 158 * 159 * @since BuddyPress (1.7 )160 * @uses do_action() Calls 'bp_admin_notices' 208 * Dedicated action to register admin styles. 209 * 210 * @since BuddyPress (1.7.0) 211 * @uses do_action() Calls 'bp_admin_notices'. 161 212 */ 162 213 function bp_register_admin_style() { 214 215 /** 216 * Fires inside the bp_register_admin_style function. 217 * 218 * @since BuddyPress (1.7.0) 219 */ 163 220 do_action( 'bp_register_admin_style' ); 164 221 } 165 222 166 223 /** 167 * Dedicated action to register admin settings 168 * 169 * @since BuddyPress (1.7 )170 * @uses do_action() Calls 'bp_register_admin_settings' 224 * Dedicated action to register admin settings. 225 * 226 * @since BuddyPress (1.7.0) 227 * @uses do_action() Calls 'bp_register_admin_settings'. 171 228 */ 172 229 function bp_register_admin_settings() { 230 231 /** 232 * Fires inside the bp_register_admin_settings function. 233 * 234 * @since BuddyPress (1.6.0) 235 */ 173 236 do_action( 'bp_register_admin_settings' ); 174 237 }
Note: See TracChangeset
for help on using the changeset viewer.