Automattic\WooCommerce\Admin\Settings

SettingsSectionRegistry::normalize_idprivateWC 1.0

Normalize page and section identifiers.

Method of the class: SettingsSectionRegistry{}

No Hooks.

Returns

String.

Usage

// private - for code of main (parent) class only
$result = $this->normalize_id( $id ): string;
$id(string) (required)
Identifier.

SettingsSectionRegistry::normalize_id() code WC 10.9.1

private function normalize_id( string $id ): string {
	return sanitize_title( $id );
}