Browser Before Send Callback #148
-
Hi all! Does somebody have a good example for a Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
stayallive
Mar 2, 2023
Replies: 2 comments
-
It's a bit tricky :) But this might help:
Something like this could work (I did not test this!): add_action( 'wp_enqueue_scripts', function () {
wp_add_inline_script( 'wp-sentry-browser', 'function wp_sentry_hook(options) { options.beforeSend = function (event) { if (event.someProperty) { return null; } return event; } }', 'before' );
} ); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stayallive
-
@stayallive Awesome! Gonna give it a shot, thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a bit tricky :) But this might help:
Something like this could work (I did not test this!):