Hey there!
Can you provide a link to where the product code you are seeing is? Just so I can be sure what it is you’d like to remove
The SKU was what I was looking to hide after all.
Because my default language is not english I couldn’t find the solution at first.
Thanks. I found how to hide it.
Plugin Support
Fernando a11n
(@fhaps)
Automattic Happiness Engineer
@petros91 Ah, that makes sense! Thank you for elaborating, and I’m glad you found a solution.
If you don’t mind, can you share what that solution is here? That way, other users might benefit from that knowledge in the future.
I’m going to mark this thread as solved now.
I downloaded Code Snippets plugin and put this snippet
function sv_remove_product_page_skus( $enabled ) {
if ( ! is_admin() && is_product() ) {
return false;
}
return $enabled;
}
add_filter( ‘wc_product_sku_enabled’, ‘sv_remove_product_page_skus’ );
Is it the right way to do that?