woocommerce_api_delete_product_attribute

woocommerce_api_delete_product_attribute

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_delete_product_attribute') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-products.php line 2170
    				}
    			}
    
    			do_action( 'woocommerce_attribute_deleted', $id, $attribute_name, $taxonomy );
    			do_action( 'woocommerce_api_delete_product_attribute', $id, $this );
    
    			// Clear transients
    			delete_transient( 'wc_attribute_taxonomies' );
    			WC_Cache_Helper::invalidate_cache_group( 'woocommerce-attributes' );
    
    			return array( 'message' => sprintf( __( 'Deleted %s', 'woocommerce' ), 'product_attribute' ) );
    
  • /includes/legacy/api/v3/class-wc-api-products.php line 2725
    				}
    			}
    
    			do_action( 'woocommerce_attribute_deleted', $id, $attribute_name, $taxonomy );
    			do_action( 'woocommerce_api_delete_product_attribute', $id, $this );
    
    			// Clear transients.
    			wp_schedule_single_event( time(), 'woocommerce_flush_rewrite_rules' );
    			delete_transient( 'wc_attribute_taxonomies' );
    			WC_Cache_Helper::invalidate_cache_group( 'woocommerce-attributes' );