WordPress at Your Fingertips
function is not described

WC_Admin_Attributes::process_delete_attribute() private WC 1.0

Delete an attribute.

{} It's a method of the class: WC_Admin_Attributes{}

No Hooks.

Return

true|false.

Usage

$result = WC_Admin_Attributes::process_delete_attribute();

Code of WC_Admin_Attributes::process_delete_attribute() WC 5.8.0

private static function process_delete_attribute() {
	$attribute_id = isset( $_GET['delete'] ) ? absint( $_GET['delete'] ) : 0;
	check_admin_referer( 'woocommerce-delete-attribute_' . $attribute_id );

	return wc_delete_attribute( $attribute_id );
}