[NSFW] Debug Error in line 38 (recaptcha?)
-
Hello, form7 is out of order on one of my sites. WordPress indicates: “An error of type E_ERROR was caused in line 38 of the file /home/maximumfpf/www/wp-content/themes/porto-child/functions.php. Error message: Uncaught Error: Call to undefined function wpcf7_do_enqueue_scripts() in /home/xxx/www/wp-content/themes/porto-child/functions.php:38 »
Then, I disabled reCAPTCHA in contact options 7, but I still have all pages containing a form which are in debug.<?php
add_action( ‘wp_enqueue_scripts’, ‘porto_child_css’, 1001 );
// Load CSS
function porto_child_css() {
// porto child theme styles
wp_deregister_style( ‘styles-child’ );
wp_register_style( ‘styles-child’, esc_url( get_stylesheet_directory_uri() ) . ‘/style.css’ );
wp_enqueue_style( ‘styles-child’ );if ( is_rtl() ) { wp_deregister_style( 'styles-child-rtl' ); wp_register_style( 'styles-child-rtl', esc_url( get_stylesheet_directory_uri() ) . '/style_rtl.css' ); wp_enqueue_style( 'styles-child-rtl' ); }}
add_filter( ‘woocommerce_order_button_text’, ‘misha_custom_button_text’ );
function misha_custom_button_text( $button_text ) {
return ‘Payer et valider ma commande’; // new text is here
}// Disable contact-form-7 enqueue actions
remove_action( ‘wp_enqueue_scripts’, ‘wpcf7_do_enqueue_scripts’, 10 );
remove_action( ‘wp_enqueue_scripts’, ‘wpcf7_recaptcha_enqueue_scripts’, 10 );// Trigger contact-form-7 enqueue actions when form shortcode is executed
function contact_form_7_enqueue_scripts($out){
wpcf7_do_enqueue_scripts();
wpcf7_recaptcha_enqueue_scripts();
return $out;
}
add_filter( ‘shortcode_atts_wpcf7’, ‘contact_form_7_enqueue_scripts’ );The page I need help with: [log in to see the link]
The topic ‘[NSFW] Debug Error in line 38 (recaptcha?)’ is closed to new replies.