woocommerce_api_edit_product_attribute_term_data

woocommerce_api_edit_product_attribute_term_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_api_edit_product_attribute_term_data') is found 1 times:

  • /includes/legacy/api/v3/class-wc-api-products.php line 2930
    			if ( ! $taxonomy ) {
    				throw new WC_API_Exception( 'woocommerce_api_invalid_product_attribute_id', __( 'A product attribute with the provided ID could not be found', 'woocommerce' ), 404 );
    			}
    
    			$data = apply_filters( 'woocommerce_api_edit_product_attribute_term_data', $data, $this );
    
    			$args = array();
    
    			// Update name.
    			if ( isset( $data['name'] ) ) {
    				$args['name'] = wc_clean( wp_unslash( $data['name'] ) );