Add-On for Zoom Registration and Gravity Forms
The Add-On for Zoom Registration and Gravity Forms plugin has a useful hook for developers to use to further enhance its functionality.
gravityzwr_registration_fields
TYPE ⇢ Filter
Modify or extend the list of available Zoom registration fields that can be mapped in Gravity Forms feed settings. This is useful for supporting custom Zoom registration questions that aren't included by default.
Example Usage
PHP
/**
* Add a custom "Referral Source" field to the available Zoom registration mapping fields.
*
* The 'name' must exactly match the field label in your Zoom registration form.
*/
add_filter( 'gravityzwr_registration_fields', function( $fields ) {
$fields[ 'referral_source' ] = [
'type' => 'string', // Accepts string input
'name' => 'Referral Source', // Zoom registration field label
'required' => false, // Optional field
];
return $fields;
} );