woocommerce_api_create_product_shipping_class

woocommerce_api_create_product_shipping_class

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_create_product_shipping_class') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 3225
    3221
    3222
    3223
    3224
    3225
    3226
    3227
    3228
    3229
    3230
    3231
        }
     
        $id = $insert['term_id'];
     
        do_action( 'woocommerce_api_create_product_shipping_class', $id, $data );
     
        $this->server->send_status( 201 );
     
        return $this->get_product_shipping_class( $id );
    } catch ( WC_API_Exception $e ) {
        return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );