bp_deregister_template_stack( string $location_callback = '', int $priority = 10 )

Deregister a previously registered template stack location.

Description

See also

Parameters

$location_callback

(string) (Optional) Callback function that returns the stack location.

Default value: ''

$priority

(int) (Optional) The priority parameter passed to bp_register_template_stack(). Default: 10.

Default value: 10

Return

(bool) See remove_filter().

Source

File: bp-core/bp-core-template-loader.php

	}

	// Add location callback to template stack.
	return remove_filter( 'bp_template_stack', $location_callback, (int) $priority );
}

/**
 * Get the "template stack", a list of registered directories where templates can be found.
 *
 * Calls the functions added to the 'bp_template_stack' filter hook, and return

Changelog

Changelog
Version Description
BuddyPress 1.7.0 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.