diff --git a/src/Provider/RequestHandler.php b/src/Provider/RequestHandler.php index 86096ab..6937b50 100644 --- a/src/Provider/RequestHandler.php +++ b/src/Provider/RequestHandler.php @@ -183,6 +183,7 @@ protected function get_route_controller( string $route ): Route { * @return bool */ protected function is_debug_mode(): bool { - return \defined( 'WP_DEBUG' ) && true === WP_DEBUG; + $is_debug_mode = \defined( 'WP_DEBUG' ) && true === WP_DEBUG; + return apply_filters( 'satispress_debug_mode', $is_debug_mode ); } }