Viewing 2 replies - 1 through 2 (of 2 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Yes.

    add_action( 'woocommerce_process_product_meta', 'wc_ninja_update_sku_on_save', 99 );
    function wc_ninja_update_sku_on_save( $id ) {
    	update_post_meta( $id, '_sku', 'test_sku' );
    }
    Thread Starter streamworksaudio

    (@streamworksaudio)

    Thanks – I was sure I could. It turned out that the priority was not high enough and that is why I couldn’t get it to work.

    But it is working now after adjusting that.

    Cheers

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