en(function(token) {
                    var event = new CustomEvent('wpcf7grecaptchaexecuted', {
                        detail: {
                            action: action,
                            token: token,
                        },
                    });

                    document.dispatchEvent(event);
                });
            };

            wpcf7_recaptcha.execute_on_homepage = function() {
                wpcf7_recaptcha.execute(wpcf7_recaptcha.actions['homepage']);
            };