bbp_deregister_template_stack( string $location_callback = '', int $priority = 10 )
Deregisters a previously registered template stack location.
Description Description
Parameters Parameters
- $location_callback
-
(Optional) Callback function that returns the
Default value: ''
- $priority
-
(Optional)
Default value: 10
Return Return
(bool) Whether stack was removed
Source Source
File: includes/core/template-functions.php
function bbp_deregister_template_stack( $location_callback = '', $priority = 10 ) { // Bail if no location, or function/method is not callable if ( empty( $location_callback ) || ! is_callable( $location_callback ) ) { return false; } // Remove location callback to template stack return remove_filter( 'bbp_template_stack', $location_callback, (int) $priority ); }
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |