WC_Admin_Attributes::process_delete_attribute()private staticWC 1.0

Delete an attribute.

Method of the class: WC_Admin_Attributes{}

No Hooks.

Return

true|false.

Usage

$result = WC_Admin_Attributes::process_delete_attribute();

WC_Admin_Attributes::process_delete_attribute() code WC 8.6.1

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 );
}