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
This example will prevent Business Directory from overriding the template
add_filter( 'wpbdp_allow_template_override', '__return_false' );
Added in version 5.9