Skip to content

Ability to override version #43

@groenroos

Description

@groenroos

I can see that this plugin currently sets the version value of each error to be equal to the current WordPress core version (a good default!).

However, as we deploy our WordPress via GitHub Actions, we would probably find it more useful for the error versions to track the deployment versions that we set in CI/CD via the Raygun Action.

Would it be possible to add support for custom version values? Maybe through exposing a filter for the version before it's passed to rg4js/php, allowing us to override it with our own value?

For example:

add_filter( 'raygun_version', function( $version ) {
  return get_deployment_sha();
}

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