Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.

This hook can be used to prevent Business Directory from controlling the page template.


add_filter( 'wpbdp_allow_template_override' );


  • $allow (bool) Defaults to TRUE


Prevent template override

This example will prevent Business Directory from overriding the template

add_filter( 'wpbdp_allow_template_override', '__return_false' );

Change Log

Added in version 5.9

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support