Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

WC_Cart_Fees::generate_id( string $fee )

Generate a unique ID for the fee being added.


Description Description


Parameters Parameters

$fee

(Required) Fee object.


Top ↑

Return Return

(string) fee key.


Top ↑

Source Source

File: includes/class-wc-cart-fees.php

	private function generate_id( $fee ) {
		return sanitize_title( $fee->name );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.