Changeset 11884
- Timestamp:
- 03/04/2018 11:17:29 PM (7 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-actions.php
r11589 r11884 87 87 88 88 /** 89 * Late includes. 90 * 91 * Run after the canonical stack is setup to allow for conditional includes 92 * on certain pages. 93 */ 94 add_action( 'bp_setup_canonical_stack', 'bp_late_include', 20 ); 95 96 /** 89 97 * The bp_template_redirect hook - Attached to 'template_redirect' above. 90 98 * -
trunk/src/bp-core/bp-core-dependency.php
r11364 r11884 32 32 */ 33 33 do_action( 'bp_include' ); 34 } 35 36 /** 37 * Fire the 'bp_late_include' action for loading conditional files. 38 * 39 * @since 3.0.0 40 */ 41 function bp_late_include() { 42 43 /** 44 * Fires the 'bp_late_include' action. 45 * 46 * Allow for conditional includes on certain pages. 47 * 48 * @since 3.0.0 49 */ 50 do_action( 'bp_late_include' ); 34 51 } 35 52 -
trunk/src/bp-core/classes/class-bp-component.php
r10825 r11884 395 395 396 396 /** 397 * Late includes method. 398 * 399 * Components should include files here only on specific pages using 400 * conditionals such as {@link bp_is_current_component()}. Intentionally left 401 * empty. 402 * 403 * @since 3.0.0 404 */ 405 public function late_includes() {} 406 407 /** 397 408 * Set up the actions. 398 409 * … … 414 425 // extending this base class. 415 426 add_action( 'bp_include', array( $this, 'includes' ), 8 ); 427 428 // Load files conditionally, based on certain pages. 429 add_action( 'bp_late_include', array( $this, 'late_includes' ) ); 416 430 417 431 // Setup navigation.
Note: See TracChangeset
for help on using the changeset viewer.