Changeset 6667
- Timestamp:
- 12/25/2012 09:55:42 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-template-loader.php
r6537 r6667 107 107 * @since BuddyPress (1.7) 108 108 * 109 * @param string $location Callback function that returns the 109 * @param string $location Callback function that returns the stack location 110 110 * @param int $priority 111 111 */ … … 117 117 118 118 // Add location callback to template stack 119 add_filter( 'bp_template_stack', $location_callback, (int) $priority ); 119 return add_filter( 'bp_template_stack', $location_callback, (int) $priority ); 120 } 121 122 /** 123 * Deregisters a previously registered template stack location. 124 * 125 * @since BuddyPress (1.7) 126 * 127 * @param string $location Callback function that returns the stack location 128 * @param int $priority 129 * @see bp_register_template_stack() 130 */ 131 function bp_deregister_template_stack( $location_callback = '', $priority = 10 ) { 132 133 // Bail if no location, or function does not exist 134 if ( empty( $location_callback ) || ! function_exists( $location_callback ) ) 135 return false; 136 137 // Add location callback to template stack 138 return remove_filter( 'bp_template_stack', $location_callback, (int) $priority ); 120 139 } 121 140
Note: See TracChangeset
for help on using the changeset viewer.