Snippets

Visser Labs Use the Variation Name instead of Slug within the Product Name detail of Product exports

Created by Michael Visser
<?php 
function custom_woo_ce_get_product_title_attribute_formatting( $format = 'slug', $post_id ) { 

    // Set the format to Attribute Title 
    $format = 'title'; 
    return $format; 

}
add_filter( 'woo_ce_get_product_title_attribute_formatting', 'custom_woo_ce_get_product_title_attribute_formatting', 10, 2 ); 
?>

Comments (0)