Skip to content

Instantly share code, notes, and snippets.

@leewillis77

leewillis77/functions.php Secret

Last active Jun 20, 2019
Embed
What would you like to do?
Example of filtering title in WooCommerce Google Product Feed
<?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