Weird warning on staging site
-
Hi,
Whenever I visit or work on my testing site I keep getting a weird error: Warning: Use of undefined constant ‘wc_stripe_before_process_payment’ – assumed ‘‘wc_stripe_before_process_payment’’ (this will throw an Error in a future version of PHP) in /home/kqlvvwgb6x1r/public_html/staging/wp-content/themes/enfold-child/functions.php on line 229
I only get this on the testing site not the live one and I am not 100% sure why or if I should be concerned about it. Here is the code it is referencing:
add_action(‘wc_stripe_before_process_payment’, function($order, $gateway_id){
if(is_checkout()){
$_POST[“{$gateway_id}_save_source_key”] = ‘yes’;
}
}, 10, 2);Should I be concerned about it or change my code? Let me know what you reccomend.
Best,
JeffThe page I need help with: [log in to see the link]
- The topic ‘Weird warning on staging site’ is closed to new replies.