Changeset 7380 for trunk/src/includes/core/sub-actions.php
- Timestamp:
- 12/05/2025 02:27:53 AM (8 months ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/sub-actions.php (modified) (44 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/sub-actions.php
r7348 r7380 2 2 3 3 /** 4 * Plugin Dependency 4 * Plugin Dependency. 5 5 * 6 6 * The purpose of the following hooks is to mimic the behavior of something … … 24 24 25 25 /** 26 * Runs on bbPress activation 26 * Runs on bbPress activation. 27 27 * 28 28 * @since 2.0.0 bbPress (r2509) … … 33 33 34 34 /** 35 * Runs on bbPress deactivation 35 * Runs on bbPress deactivation. 36 36 * 37 37 * @since 2.0.0 bbPress (r2509) … … 42 42 43 43 /** 44 * Runs when uninstalling bbPress 44 * Runs when uninstalling bbPress. 45 45 * 46 46 * @since 2.0.0 bbPress (r2509) … … 53 53 54 54 /** 55 * Main action responsible for constants, globals, and includes 55 * Main action responsible for constants, globals, and includes. 56 56 * 57 57 * @since 2.0.0 bbPress (r2599) … … 62 62 63 63 /** 64 * Setup constants 64 * Setup constants. 65 65 * 66 66 * @since 2.0.0 bbPress (r2599) … … 71 71 72 72 /** 73 * Setup globals BEFORE includes 73 * Setup globals BEFORE includes. 74 74 * 75 75 * @since 2.0.0 bbPress (r2599) … … 80 80 81 81 /** 82 * Include files 82 * Include files. 83 83 * 84 84 * @since 2.0.0 bbPress (r2599) … … 89 89 90 90 /** 91 * Setup globals AFTER includes 91 * Setup globals AFTER includes. 92 92 * 93 93 * @since 2.0.0 bbPress (r2599) … … 98 98 99 99 /** 100 * Register any objects before anything is initialized 100 * Register any objects before anything is initialized. 101 101 * 102 102 * @since 2.2.0 bbPress (r4180) … … 107 107 108 108 /** 109 * Initialize any code after everything has been loaded 109 * Initialize any code after everything has been loaded. 110 110 * 111 111 * @since 2.0.0 bbPress (r2599) … … 116 116 117 117 /** 118 * Initialize roles 118 * Initialize roles. 119 119 * 120 120 * @since 2.6.0 bbPress (r6106) 121 121 * 122 * @param WP_Roles $wp_roles The array of WP_Role objects that was initialized 122 * @param WP_Roles $wp_roles The array of WP_Role objects that was initialized. 123 123 */ 124 124 function bbp_roles_init( $wp_roles ) { … … 127 127 128 128 /** 129 * Initialize widgets 129 * Initialize widgets. 130 130 * 131 131 * @since 2.0.0 bbPress (r3389) … … 136 136 137 137 /** 138 * Setup the currently logged-in user 138 * Setup the currently logged-in user. 139 139 * 140 140 * @link https://bbpress.trac.wordpress.org/ticket/2309 … … 148 148 149 149 /** 150 * Setup the user engagements strategy 150 * Setup the user engagements strategy. 151 151 * 152 152 * @since 2.6.0 bbPress (r6875) … … 159 159 160 160 /** 161 * Load translations for current language 161 * Load translations for current language. 162 162 * 163 163 * @since 2.0.0 bbPress (r2599) … … 168 168 169 169 /** 170 * Setup the post types 170 * Setup the post types. 171 171 * 172 172 * @since 2.0.0 bbPress (r2464) … … 177 177 178 178 /** 179 * Setup the post statuses 179 * Setup the post statuses. 180 180 * 181 181 * @since 2.0.0 bbPress (r2727) … … 186 186 187 187 /** 188 * Register the built in bbPress taxonomies 188 * Register the built in bbPress taxonomies. 189 189 * 190 190 * @since 2.0.0 bbPress (r2464) … … 195 195 196 196 /** 197 * Register the default bbPress views 197 * Register the default bbPress views. 198 198 * 199 199 * @since 2.0.0 bbPress (r2789) … … 204 204 205 205 /** 206 * Register the default bbPress shortcodes 206 * Register the default bbPress shortcodes. 207 207 * 208 208 * @since 2.2.0 bbPress (r4211) … … 213 213 214 214 /** 215 * Register the default bbPress meta-data 215 * Register the default bbPress meta-data. 216 216 * 217 217 * @since 2.6.0 bbPress (r46300) … … 222 222 223 223 /** 224 * Enqueue bbPress specific CSS and JS 224 * Enqueue bbPress specific CSS and JS. 225 225 * 226 226 * @since 2.0.0 bbPress (r3373) … … 231 231 232 232 /** 233 * Add the bbPress-specific rewrite tags 233 * Add the bbPress-specific rewrite tags. 234 234 * 235 235 * @since 2.0.0 bbPress (r2753) … … 240 240 241 241 /** 242 * Add the bbPress-specific rewrite rules 242 * Add the bbPress-specific rewrite rules. 243 243 * 244 244 * @since 2.4.0 bbPress (r4918) … … 249 249 250 250 /** 251 * Add the bbPress-specific permalink structures 251 * Add the bbPress-specific permalink structures. 252 252 * 253 253 * @since 2.4.0 bbPress (r4918) … … 267 267 268 268 /** 269 * Add the bbPress-specific post status transition action 269 * Add the bbPress-specific post status transition action. 270 270 * 271 271 * @since 2.6.0 bbPress (r6792) 272 272 * 273 * @param string $new_status New post status 274 * @param string $old_status Old post status 275 * @param WP_Post $post Post object 273 * @param string $new_status New post status. 274 * @param string $old_status Old post status. 275 * @param WP_Post $post Post object. 276 276 */ 277 277 function bbp_transition_post_status( $new_status = '', $old_status = '', $post = false ) { … … 293 293 294 294 /** 295 * The main action for hooking into when a user account is updated 295 * The main action for hooking into when a user account is updated. 296 296 * 297 297 * @since 2.2.0 bbPress (r4304) 298 298 * 299 * @param int $user_id ID of user being edited 299 * @param int $user_id ID of user being edited. 300 300 * @param array $old_user_data The old, unmodified user data 301 301 */ … … 305 305 306 306 /** 307 * The main action for hooking into a user being registered 307 * The main action for hooking into a user being registered. 308 308 * 309 309 * @since 2.2.0 bbPress (r4304) 310 310 * 311 * @param int $user_id ID of user being edited 311 * @param int $user_id ID of user being edited. 312 312 */ 313 313 function bbp_user_register( $user_id = 0 ) { … … 318 318 319 319 /** 320 * bbPress has loaded and initialized everything, and is okay to go 320 * bbPress has loaded and initialized everything, and is okay to go. 321 321 * 322 322 * @since 2.0.0 bbPress (r2618) … … 330 330 /** 331 331 * The main action used for redirecting bbPress theme actions that are not 332 * permitted by the current_user 332 * permitted by the current_user. 333 333 * 334 334 * @since 2.1.0 bbPress (r3605) … … 341 341 342 342 /** 343 * The main action used for executing code before the theme has been setup 343 * The main action used for executing code before the theme has been setup. 344 344 * 345 345 * @since 2.1.0 bbPress (r3829) … … 350 350 351 351 /** 352 * The main action used for executing code before the theme has been setup 352 * The main action used for executing code before the theme has been setup. 353 353 * 354 354 * @since 2.1.0 bbPress (r3732) … … 359 359 360 360 /** 361 * The main action used for executing code after the theme has been setup 361 * The main action used for executing code after the theme has been setup. 362 362 * 363 363 * @since 2.1.0 bbPress (r3732) … … 368 368 369 369 /** 370 * The main action used for handling theme-side POST requests 370 * The main action used for handling theme-side POST requests. 371 371 * 372 372 * @since 2.3.0 bbPress (r4550) … … 401 401 402 402 /** 403 * The main action used for handling theme-side GET requests 403 * The main action used for handling theme-side GET requests. 404 404 * 405 405 * @since 2.3.0 bbPress (r4550) … … 450 450 451 451 /** 452 * Piggy back filter for WordPress's 'request' filter 452 * Piggy back filter for WordPress's 'request' filter. 453 453 * 454 454 * @since 2.1.0 bbPress (r3758) … … 470 470 * 471 471 * @param string $template 472 * @return string Template file to use 472 * @return string Template file to use. 473 473 */ 474 474 function bbp_template_include( $template = '' ) { … … 479 479 480 480 /** 481 * Generate bbPress-specific rewrite rules 481 * Generate bbPress-specific rewrite rules. 482 482 * 483 483 * @since 2.0.0 bbPress (r2688) … … 492 492 493 493 /** 494 * Filter the allowed themes list for bbPress specific themes 494 * Filter the allowed themes list for bbPress specific themes. 495 495 * 496 496 * @since 2.0.0 bbPress (r2944) … … 498 498 * @param array $themes 499 499 * 500 * @return array Array of allowed themes 500 * @return array Array of allowed themes. 501 501 */ 502 502 function bbp_allowed_themes( $themes ) { … … 507 507 508 508 /** 509 * Maps forum/topic/reply caps to built in WordPress caps 509 * Maps forum/topic/reply caps to built in WordPress caps. 510 510 * 511 511 * @since 2.0.0 bbPress (r2593) 512 512 * 513 * @param array $caps Capabilities for meta capability 514 * @param string $cap Capability name 515 * @param int $user_id User id 516 * @param array $args Arguments 517 * 518 * @return array Array of capabilities 513 * @param array $caps Capabilities for meta capability. 514 * @param string $cap Capability name. 515 * @param int $user_id User id. 516 * @param array $args Arguments. 517 * 518 * @return array Array of capabilities. 519 519 */ 520 520 function bbp_map_meta_caps( $caps = array(), $cap = '', $user_id = 0, $args = array() ) { … … 525 525 526 526 /** 527 * Filter the arguments used by wp_mail for bbPress specific emails 527 * Filter the arguments used by wp_mail for bbPress specific emails. 528 528 * 529 529 * @since 2.6.0 bbPress (r6918) … … 532 532 * subject, message, headers, and attachments values. 533 533 * 534 * @return array Array of capabilities 534 * @return array Array of capabilities. 535 535 */ 536 536 function bbp_mail( $args = array() ) {
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)