Skip to content

Browser Before Send Callback #148

Closed Answered by stayallive
johanmolen asked this question in Q&A
Discussion options

You must be logged in to vote

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' );
} );

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by stayallive
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants