bbp_deregister_template_stack( $location_callback = '', int $priority = 10 )

Deregisters a previously registered template stack location.

Description

See also

Parameters

$location

(Required) Callback function that returns the

$priority

(Optional)

Default value: 10

Source

File: bp-forums/core/template-functions.php

function bbp_deregister_template_stack( $location_callback = '', $priority = 10 ) {

	// Bail if no location, or function does not exist
	if ( empty( $location_callback ) || ! function_exists( $location_callback ) )
		return false;

	// Remove location callback to template stack
	return remove_filter( 'bbp_template_stack', $location_callback, (int) $priority );
}

Changelog

Changelog
Version Description
bbPress (r4652) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.