SKU display disable – improve proposal
-
I want to disable SKU display on product single page. It’s require to change in a file “/accesspress-store/inc/accesspress-function.php” one line from
add_filter( 'wc_product_sku_enabled', '__return_true>' );
toadd_filter( 'wc_product_sku_enabled', '__return_false' );
I prefer change this filter in /childtheme/functions.php because it’s a insusceptible if main theme will be updated. Unfortunatelly it doesnt work because “accesspress-function.php” override “/childtheme/functions.php”. But if you check in “accesspress-function.php” is filter exist like this:if (! has_filter('wc_product_sku_enabled')){ add_filter( 'wc_product_sku_enabled', '__return_true' ); }
everything works great.
- The topic ‘SKU display disable – improve proposal’ is closed to new replies.