• Hi,

    I am using this great plugin. I use Dokan + Woocommerce.

    I need call to create a SKU after a product is created.

    How can I call a function of this plugin to do this?

    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter icaro56

    (@icaro56)

    /*
    * Saving product field data for edit and update
    */
    add_action('dokan_new_product_added', 'save_product_meta', 10, 2);
    
    function save_product_meta($product_id, $postdata)
    {
        //add something here to generate SKU
    
        update_product_meta($product_id, $postdata);
    }
    • This reply was modified 2 years, 9 months ago by icaro56.
    • This reply was modified 2 years, 9 months ago by icaro56.
Viewing 1 replies (of 1 total)
  • The topic ‘How to call via code to generate Sku of a new product?’ is closed to new replies.