woocommerce offtopic – Add html link in php

Question

I need to insert an html link in this php code placed in the function.php of my theme :

function filter_woocommerce_checkout_must_be_logged_in_message( $message ) {
    $message="You must be logged in to order";
    return $message; 
}
add_filter( 'woocommerce_checkout_must_be_logged_in_message', 'filter_woocommerce_checkout_must_be_logged_in_message', 10, 1 );

What i need is to add a link to the message.


You must be<a href="url">logged in</a> to order

Can someone help me with that ?

Thanks !

0
Stéphane Dumas 4 weeks 2021-11-05T03:41:39-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse