Changeset 10108 for trunk/src/bp-core/bp-core-dependency.php
- Timestamp:
- 09/13/2015 02:02:56 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/bp-core-dependency.php (modified) (57 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-dependency.php
r10012 r10108 1 1 <?php 2 3 2 /** 4 3 * Plugin Dependency Action Hooks. … … 16 15 * 17 16 * @todo use anonymous functions when PHP minimum requirement allows (5.3) 17 * 18 * @package BuddyPress 19 * @subpackage Core 18 20 */ 19 21 … … 26 28 * Fires inside the 'bp_include' function, where plugins should include files. 27 29 * 28 * @since BuddyPress (1.2.5)30 * @since 1.2.5 29 31 */ 30 32 do_action( 'bp_include' ); … … 39 41 * Fires inside the 'bp_setup_components' function, where plugins should initialize components. 40 42 * 41 * @since BuddyPress (1.6.0)43 * @since 1.6.0 42 44 */ 43 45 do_action( 'bp_setup_components' ); … … 52 54 * Fires inside the 'bp_setup_canonical_stack' function, where plugins should set up their canonical URL. 53 55 * 54 * @since BuddyPress (2.1.0)56 * @since 2.1.0 55 57 */ 56 58 do_action( 'bp_setup_canonical_stack' ); … … 60 62 * Fire the 'bp_register_taxonomies' action, where plugins should register taxonomies. 61 63 * 62 * @since BuddyPress (2.2.0)64 * @since 2.2.0 63 65 */ 64 66 function bp_register_taxonomies() { … … 67 69 * Fires inside the 'bp_register_taxonomies' function, where plugins should register taxonomies. 68 70 * 69 * @since BuddyPress (2.2.0)71 * @since 2.2.0 70 72 */ 71 73 do_action( 'bp_register_taxonomies' ); … … 80 82 * Fires inside the 'bp_setup_globals' function, where plugins should initialize global settings. 81 83 * 82 * @since BuddyPress (1.2.0)84 * @since 1.2.0 83 85 */ 84 86 do_action( 'bp_setup_globals' ); … … 93 95 * Fires inside the 'bp_setup_nav' function, where plugins should register their navigation items. 94 96 * 95 * @since BuddyPress (1.2.0)97 * @since 1.2.0 96 98 */ 97 99 do_action( 'bp_setup_nav' ); … … 109 111 * This hook will only fire if bp_use_wp_admin_bar() returns true. 110 112 * 111 * @since BuddyPress (1.5.0)113 * @since 1.5.0 112 114 */ 113 115 do_action( 'bp_setup_admin_bar' ); … … 123 125 * Fires inside the 'bp_setup_title' function, where plugins should modify the page title. 124 126 * 125 * @since BuddyPress (1.5.0)127 * @since 1.5.0 126 128 */ 127 129 do_action( 'bp_setup_title' ); … … 136 138 * Fires inside the 'bp_register_widgets' function, where plugins should register widgets. 137 139 * 138 * @since BuddyPress (1.2.0)140 * @since 1.2.0 139 141 */ 140 142 do_action( 'bp_register_widgets' ); … … 144 146 * Fire the 'bp_register_member_types' action, where plugins should register member types. 145 147 * 146 * @since BuddyPress (2.3.0)148 * @since 2.3.0 147 149 */ 148 150 function bp_register_member_types() { … … 151 153 * Fires inside bp_register_member_types(), so plugins can register member types. 152 154 * 153 * @since BuddyPress (2.3.0)155 * @since 2.3.0 154 156 */ 155 157 do_action( 'bp_register_member_types' ); … … 159 161 * Fire the 'bp_setup_cache_groups' action, where cache groups are registered. 160 162 * 161 * @since BuddyPress (2.2.0)163 * @since 2.2.0 162 164 */ 163 165 function bp_setup_cache_groups() { … … 166 168 * Fires inside the 'bp_setup_cache_groups' function, where cache groups are registered. 167 169 * 168 * @since BuddyPress (2.2.0)170 * @since 2.2.0 169 171 */ 170 172 do_action( 'bp_setup_cache_groups' ); … … 193 195 * Fires to set up the current user setup process. 194 196 * 195 * @since BuddyPress (1.7.0)197 * @since 1.7.0 196 198 */ 197 199 do_action( 'bp_setup_current_user' ); … … 206 208 * Fires inside the 'bp_init' function, BuddyPress' main initialization hook. 207 209 * 208 * @since BuddyPress (1.2.0)210 * @since 1.2.0 209 211 */ 210 212 do_action( 'bp_init' ); … … 221 223 * Fires inside the 'bp_loaded' function, which fires after BP's core plugin files have been loaded. 222 224 * 223 * @since BuddyPress (1.2.5)225 * @since 1.2.5 224 226 */ 225 227 do_action( 'bp_loaded' ); … … 236 238 * Fires inside the 'bp_ready' function, which runs after BP is set up and the page is about to render. 237 239 * 238 * @since BuddyPress (1.6.0)240 * @since 1.6.0 239 241 */ 240 242 do_action( 'bp_ready' ); … … 252 254 * Fires inside the 'bp_actions' function, which runs just before rendering. 253 255 * 254 * @since BuddyPress (1.5.0)256 * @since 1.5.0 255 257 */ 256 258 do_action( 'bp_actions' ); … … 270 272 * Runs just after 'bp_actions'. Use this hook to attach your template loaders. 271 273 * 272 * @since BuddyPress (1.5.0)274 * @since 1.5.0 273 275 */ 274 276 do_action( 'bp_screens' ); … … 287 289 * Hooked to 'widgets_init'. 288 290 * 289 * @since BuddyPress (1.6.0)291 * @since 1.6.0 290 292 */ 291 293 do_action ( 'bp_widgets_init' ); … … 310 312 * who do not have the proper permission to access certain content. 311 313 * 312 * @since BuddyPress (1.6.0)314 * @since 1.6.0 313 315 * 314 316 * @uses do_action() … … 319 321 * Fires inside the 'bp_template_redirect' function. 320 322 * 321 * @since BuddyPress (1.6.0)323 * @since 1.6.0 322 324 */ 323 325 do_action( 'bp_template_redirect' ); … … 331 333 * The main action used registering theme directories. 332 334 * 333 * @since BuddyPress (1.5.0)335 * @since 1.5.0 334 336 * 335 337 * @uses do_action() … … 342 344 * The main action used registering theme directories. 343 345 * 344 * @since BuddyPress (1.7.0)346 * @since 1.7.0 345 347 */ 346 348 do_action( 'bp_register_theme_directory' ); … … 352 354 * The main action used registering theme packages. 353 355 * 354 * @since BuddyPress (1.7.0)356 * @since 1.7.0 355 357 * 356 358 * @uses do_action() … … 361 363 * Fires inside the 'bp_register_theme_packages' function. 362 364 * 363 * @since BuddyPress (1.7.0)365 * @since 1.7.0 364 366 */ 365 367 do_action( 'bp_register_theme_packages' ); … … 369 371 * Fire the 'bp_enqueue_scripts' action, where BP enqueues its CSS and JS. 370 372 * 371 * @since BuddyPress (1.6.0)373 * @since 1.6.0 372 374 * 373 375 * @uses do_action() Calls 'bp_enqueue_scripts'. … … 378 380 * Fires inside the 'bp_enqueue_scripts' function, where BP enqueues its CSS and JS. 379 381 * 380 * @since BuddyPress (1.6.0)382 * @since 1.6.0 381 383 */ 382 384 do_action ( 'bp_enqueue_scripts' ); … … 386 388 * Fire the 'bp_add_rewrite_tag' action, where BP adds its custom rewrite tags. 387 389 * 388 * @since BuddyPress (1.8.0)390 * @since 1.8.0 389 391 * 390 392 * @uses do_action() Calls 'bp_add_rewrite_tags'. … … 395 397 * Fires inside the 'bp_add_rewrite_tags' function, where BP adds its custom rewrite tags. 396 398 * 397 * @since BuddyPress (1.8.0)399 * @since 1.8.0 398 400 */ 399 401 do_action( 'bp_add_rewrite_tags' ); … … 403 405 * Fire the 'bp_add_rewrite_rules' action, where BP adds its custom rewrite rules. 404 406 * 405 * @since BuddyPress (1.9.0)407 * @since 1.9.0 406 408 * 407 409 * @uses do_action() Calls 'bp_add_rewrite_rules'. … … 412 414 * Fires inside the 'bp_add_rewrite_rules' function, where BP adds its custom rewrite rules. 413 415 * 414 * @since BuddyPress (1.9.0)416 * @since 1.9.0 415 417 */ 416 418 do_action( 'bp_add_rewrite_rules' ); … … 420 422 * Fire the 'bp_add_permastructs' action, where BP adds its BP-specific permalink structure. 421 423 * 422 * @since BuddyPress (1.9.0)424 * @since 1.9.0 423 425 * 424 426 * @uses do_action() Calls 'bp_add_permastructs'. … … 429 431 * Fires inside the 'bp_add_permastructs' function, where BP adds its BP-specific permalink structure. 430 432 * 431 * @since BuddyPress (1.9.0)433 * @since 1.9.0 432 434 */ 433 435 do_action( 'bp_add_permastructs' ); … … 440 442 * BuddyPress-specific functionality. 441 443 * 442 * @since BuddyPress (1.6.0)444 * @since 1.6.0 443 445 * 444 446 * @uses do_action() Calls 'bp_setup_theme'. … … 449 451 * Fires inside the 'bp_setup_theme' function. 450 452 * 451 * @since BuddyPress (1.6.0)453 * @since 1.6.0 452 454 */ 453 455 do_action ( 'bp_setup_theme' ); … … 464 466 * before our theme compatibility layer kicks in. 465 467 * 466 * @since BuddyPress (1.6.0)468 * @since 1.6.0 467 469 * 468 470 * @uses do_action() Calls 'bp_after_setup_theme'. … … 473 475 * Fires inside the 'bp_after_setup_theme' function. 474 476 * 475 * @since BuddyPress (1.7.0)477 * @since 1.7.0 476 478 */ 477 479 do_action ( 'bp_after_setup_theme' ); … … 483 485 * Fire the 'bp_request' filter, a piggy-back of WP's 'request'. 484 486 * 485 * @since BuddyPress (1.7.0)487 * @since 1.7.0 486 488 * 487 489 * @see WP::parse_request() for a description of parameters. … … 496 498 * Filters the query_vars for the current request. 497 499 * 498 * @since BuddyPress (1.7.0)500 * @since 1.7.0 499 501 * 500 502 * @param array $query_vars Array of query variables. … … 506 508 * Fire the 'bp_login_redirect' filter, a piggy-back of WP's 'login_redirect'. 507 509 * 508 * @since BuddyPress (1.7.0)510 * @since 1.7.0 509 511 * 510 512 * @param string $redirect_to See 'login_redirect'. … … 520 522 * Filters the URL to redirect to after login. 521 523 * 522 * @since BuddyPress (1.7.0)524 * @since 1.7.0 523 525 * 524 526 * @param string $redirect_to The redirect destination URL. … … 534 536 * Hooked to 'template_include'. 535 537 * 536 * @since BuddyPress (1.6.0)538 * @since 1.6.0 537 539 * 538 540 * @uses apply_filters() … … 547 549 * Filters the template to use with template_include. 548 550 * 549 * @since BuddyPress (1.6.0)551 * @since 1.6.0 550 552 * 551 553 * @param string $template The path of the template to include. … … 557 559 * Fire the 'bp_generate_rewrite_rules' action, where BP generates its rewrite rules. 558 560 * 559 * @since BuddyPress (1.7.0)561 * @since 1.7.0 560 562 * 561 563 * @uses do_action() Calls 'bp_generate_rewrite_rules' with {@link WP_Rewrite}. … … 568 570 * Fires inside the 'bp_generate_rewrite_rules' function. 569 571 * 570 * @since BuddyPress (1.7.0)572 * @since 1.7.0 571 573 * 572 574 * @param WP_Rewrite $wp_rewrite WP_Rewrite object. Passed by reference. … … 580 582 * Filter the allowed themes list for BuddyPress-specific themes. 581 583 * 582 * @since BuddyPress (1.7.0)584 * @since 1.7.0 583 585 * 584 586 * @uses apply_filters() Calls 'bp_allowed_themes' with the allowed themes list. … … 593 595 * Filters the allowed themes list for BuddyPress-specific themes. 594 596 * 595 * @since BuddyPress (1.7.0)597 * @since 1.7.0 596 598 * 597 599 * @param string $template The path of the template to include. … … 605 607 * The main action used for handling theme-side POST requests. 606 608 * 607 * @since BuddyPress (1.9.0)609 * @since 1.9.0 608 610 * @uses do_action() 609 611 */ … … 629 631 * the scope of the 'action' without needing to check it in your function. 630 632 * 631 * @since BuddyPress (1.9.0)633 * @since 1.9.0 632 634 */ 633 635 do_action( 'bp_post_request_' . $action ); … … 638 640 * Use this static action if you don't mind checking the 'action' yourself. 639 641 * 640 * @since BuddyPress (1.9.0)642 * @since 1.9.0 641 643 * 642 644 * @param string $action The action being run. … … 648 650 * The main action used for handling theme-side GET requests. 649 651 * 650 * @since BuddyPress (1.9.0)652 * @since 1.9.0 651 653 * @uses do_action() 652 654 */ … … 672 674 * the scope of the 'action' without needing to check it in your function. 673 675 * 674 * @since BuddyPress (1.9.0)676 * @since 1.9.0 675 677 */ 676 678 do_action( 'bp_get_request_' . $action ); … … 681 683 * Use this static action if you don't mind checking the 'action' yourself. 682 684 * 683 * @since BuddyPress (1.9.0)685 * @since 1.9.0 684 686 * 685 687 * @param string $action The action being run.
Note: See TracChangeset
for help on using the changeset viewer.