Ignore for parent theme
-
Hello
I used this code to capture errors from current child theme only, but I still see many error from parent theme
foreach ( $stacktrace->getFrames() as $frame ) { // Check the the frame happened inside our theme or plugin // Change THEME_NAME and PLUGIN_NAME to whatever is required // And / or modify this <code>if</code> statement to detect other variables if ( $strContainsHelper( $frame->getFile(), 'themes/brooklyn-child' ) ) { // Send the event to Sentry return $event; } }
Is it possible to ignore the parent theme?
Thanks
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Ignore for parent theme’ is closed to new replies.