Skip to content

Hook to attach custom data #44

Description

@groenroos

Would it be possible to introduce a way to add custom data to be passed to each error (whether JS or PHP)?

Since it's fairly niche, I reckon a simple filter would be sufficient for this (i.e. no need to expose a settings UI in the admin), something that would allow me to do something like:

add_filter( 'raygun_custom_data', function( $error ) {
  return [ "foo" => "bar" ];
}

This would help with important additional developer context; e.g. if #43 becomes possible, I might still wish to capture the WordPress core version as custom data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions