WC_Admin_Attributes::process_delete_attribute()private staticWC 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 6.7.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 );
}