Hi,
I've got issues with Child theme functions php..
I need to change the "Take this course" link button to a custom one. So I've pasted the code you mentionned in this post but it seems i have an issue with my functions.php file as you can see here , it breaks the header of my website : http://adekoite-dev.fr/appli/
Can you please help ?
Thanks
@Julien3z,
It seems like the code is not added properly. Remove the code from functions.php file and paste the code in wp-admin > Plugins > editor > Select WPLMS Customizer Plugin > wplms-customizer.php > Save
Then Let me know whether it is working or not
I really have an issue with this fiunctions.php file
Now i've pasted this code to auto complete woocommerce orders but again, it shows before the header of my site :
/*
* Auto Complete all WooCommerce orders.
*/
add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
function custom_woocommerce_auto_complete_order( $order_id ) {
if ( ! $order_id ) {
return;
}
$order = wc_get_order( $order_id );
$order->update_status( 'completed' );
}