Hello there,
we hope you’re doing well!
In order to achieve what you need, add the following code in the functions.php file of your active child theme:
if ( ! function_exists( 'yith_wcwl_change_add_to_cart_text' ) ) {
function yith_wcwl_change_add_to_cart_text() {
$jquery = 'jQuery( function( $ ) {
$( ".wishlist_table td.product-add-to-cart a.add_to_cart_button" ).text( "Add to bag" );
});';
wp_add_inline_script( 'jquery-yith-wcwl', $jquery );
wp_add_inline_script( 'jquery-yith-wcwl-user', $jquery );
}
add_action( 'wp_enqueue_scripts', 'yith_wcwl_change_add_to_cart_text', 999 );
}
Check it out and tell us if it works well for you, please.
Have a nice day!