woocommerce_api_create_product_attribute_term

woocommerce_api_create_product_attribute_term

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_api_create_product_attribute_term') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 2887
    			}
    
    			$id = $term['term_id'];
    
    			do_action( 'woocommerce_api_create_product_attribute_term', $id, $data );
    
    			$this->server->send_status( 201 );
    
    			return $this->get_product_attribute_term( $attribute_id, $id );
    		} catch ( WC_API_Exception $e ) {
    			return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );