Disable Google reCAPTCHA input field by adding a filter hook elementor/widgets/is_widget_enabled
. Add the following code to the selected theme’s functions.php file. Next, navigate to WP Admin > MetForm, edit your form with Elementor, and click the publish button to apply the changes. This step is essential.
1 2 3 4 5 6 7 8 |
add_filter('elementor/widgets/is_widget_enabled', 'mfsc_recaptcha_disable_render', 99, 2); function mfsc_recaptcha_disable_render( $enable, $widget_instance){ if( $widget_instance instanceof \Elementor\MetForm_Input_Recaptcha){ return false; } return true; } |