Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    add_filter( 'wc_product_sku_enabled', '__return_false' );

    Add to theme functions.php

    What if I still want to use SKUs but just not display them?
    I tried adding below code to theme function.php, didn’t work.

    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’ );”” into appearnce, editor, edit themes

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get rid of 'sku n/a'’ is closed to new replies.