[WC] Change "Read More" label for external products

FW 2.0

Add the following snippet at the end of the file wp-content/themes/[your-theme-name]/functions.php


if ( ! function_exists( 'yit_external_add_to_cart_text' ) ) :
	function yit_external_add_to_cart_text( $label ) {
		$label = __( 'Add Product to cart', 'yit' );
		return $label;
	add_filter( 'external_add_to_cart_text', 'yit_external_add_to_cart_text' );


Remember to change the label text.

Was this article helpful?
0 out of 0 found this helpful

Back to Help Center

Powered by Zendesk