marshallu / mu-hr-train
Plugin that allows for HR trainings to be created and individuals register for sessions on the Marshall website.
Package info
github.com/marshallu/herd-hr-train
Type:wordpress-plugin
pkg:composer/marshallu/mu-hr-train
Requires
None
Requires (Dev)
- automattic/vipwpcs: ^3.0
- composer/installers: ^1.0
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.1
- php-stubs/acf-pro-stubs: ^6.2
- squizlabs/php_codesniffer: @stable
- wp-coding-standards/wpcs: ^3.1
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Registration form CAPTCHA
The frontend training registration form uses Google reCAPTCHA v2. Configure the public site key and private secret key in the HR Registration Settings page in WordPress. The settings page is restricted to administrators.
For automated deployments, the keys may also be supplied in wp-config.php:
define( 'MU_HR_TRAINING_RECAPTCHA_SITE_KEY', 'your-site-key' ); define( 'MU_HR_TRAINING_RECAPTCHA_SECRET_KEY', 'your-secret-key' );
The secret key must never be exposed in frontend code or committed to the repository. The registration is rejected unless Google successfully verifies the CAPTCHA response before ACF saves the registration post.