woocommerce_api_create_tax_class

woocommerce_api_create_tax_class

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_create_tax_class') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-taxes.php line 585
    			if ( is_wp_error( $tax_class ) ) {
    				return new WP_Error( 'woocommerce_api_' . $tax_class->get_error_code(), $tax_class->get_error_message(), 401 );
    			}
    
    			do_action( 'woocommerce_api_create_tax_class', $tax_class['slug'], $data );
    
    			$this->server->send_status( 201 );
    
    			return array(
    				'tax_class' => $tax_class,
    			);