Closed jluxenberg closed 6 years ago
This is a great idea @jluxenberg Thanks for the PR
We need to make a test for this as well.
I know this is old, but a couple quick thoughts: 1) The rollbar_js_config function should probably be declared as public. 2) It may be good to make it clear that a RollbarWPUser object needs to be created for the filter to be set.
Allows a plugin to modify the JS config passed to Rollbar.
You can use this e.g. to add the currently logged in user to the "person" field of the payload. With this change, you could have this plugin: