-
-
Save leewillis77/44cb3317890470d96a316915f6476aa9 to your computer and use it in GitHub Desktop.
Example of filtering title in WooCommerce Google Product Feed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function lw_woocommerce_gpf_title( $title, $product_id ) { | |
// Modify $title here as you want. | |
return $title; | |
} | |
add_filter( 'woocommerce_gpf_title', 'lw_woocommerce_gpf_title', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment