Skip to content

Commit

Permalink
Add a filter to set debug mode in the request handler. See #211
Browse files Browse the repository at this point in the history
  • Loading branch information
bradyvercher committed Oct 10, 2024
1 parent c901d7d commit 77b8a1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Provider/RequestHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}

1 comment on commit 77b8a1f

@rmpel
Copy link

@rmpel rmpel commented on 77b8a1f Oct 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.