• Resolved thecomputerguyltd

    (@thecomputerguyltd)


    Hello,

    I’m using the following custom function to hide SKU’s on the product pages etc, whilst still retaining them in the background (For admin use etc)

    The SKU is appearing on the PDF Invoices – how would I stop that? Thank you.

    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’ );

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove SKU’ is closed to new replies.