https://github.com/yardinternet/owc-gravityforms-digid
This plugin provides a GravityForms field to retrieve a BSN number from DigiD.
https://github.com/yardinternet/owc-gravityforms-digid
plugin
Last synced: about 2 months ago
JSON representation
This plugin provides a GravityForms field to retrieve a BSN number from DigiD.
- Host: GitHub
- URL: https://github.com/yardinternet/owc-gravityforms-digid
- Owner: yardinternet
- License: eupl-1.2
- Created: 2020-03-27T10:59:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2026-05-07T10:37:19.000Z (about 2 months ago)
- Last Synced: 2026-05-07T12:34:49.753Z (about 2 months ago)
- Topics: plugin
- Language: PHP
- Homepage:
- Size: 1.6 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# OWC GravityForms DigiD

This plugin provides a GravityForms field to retrieve a BSN (social security) number from DigiD.
## Local development
DigiD is only able to connect with valid PKi certificates, for local development you can fake a session by setting the below environment variable.
```env
DIGID_FAKE_SESSION='012345678'
```
## Logging
Enable logging to monitor errors during communication with DigiD.
Make sure to set WP_DEBUG to true in your wp-config.php to enable logging.
Be cautious: the generated log file is stored in the publicly accessible upload directoy and can include sensitive information.
- Logs are written daily to `gfdigid-log{-date}.json` in the uploads directory.
- A rotating file handler keeps up to 7 log files by default, deleting the oldest as needed.
- You can change the maximum number of log files using the filter described below.
## Hooks
### Change the maximum number of log files
Use the following filter to alter the rotating file handler's max files setting:
```php
apply_filters('owc_gravityforms_digid_rotating_filer_handler_max_files', GF_DIGID_LOGGER_DEFAULT_MAX_FILES)
```
### Intercept exceptions for custom handling
You can intercept exceptions caught by the plugin for additional processing or custom logging using this filter:
```php
do_action('owc_gravityforms_digid_exception_intercept', $exception, $method)
```
The `$exception` parameter contains the caught exception object.
### Intercept logging messages for custom handling
You can intercept informational logging messages generated by the plugin for additional processing or custom logging using this filter:
```php
add_action('owc_gravityforms_digid_info_intercept', $message, $context)
```
The `$message` parameter contains logging message, the `$context` parameter is an array containing additional context info.
## Creating a new release
1. Update the version in `plugin.php` x2 (plugin version and metadata)
2. Ensure that `CHANGELOG.md` and `RELEASE_NOTES.md` are updated with the latest changes
3. Draft a new release
## About us
[](https://www.yard.nl/werken-bij/)