gform_recaptcha_callback

gform_recaptcha_callback

DescriptionUsageParametersExample1. Add the script via the gform_pre_render hookPlacementSource Code

Description
The 「gform_recaptcha_callback」 JavaScript filter in Gravity Forms allows a custom callback function to be executed when the user successfully submits the captcha.
Usage
12345gform.addFilter( 'gform_recaptcha_callback', function( callback, elem) {    // do stuff      return callback;} );

Parameters

type string or boolean
The name of the callback function to be executed when the user successfully submits the captcha.

elem object
The jQuery object containing the div element with the ginput_recaptcha class for the current reCaptcha field.

Example
1. Add the script via the gform_pre_render hook
1234567891011121314add_action( 'gform_pre_render', 'set_callback' );function set_callback( $form ) {    ?>        

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注