Automattic\WooCommerce\Admin\Settings
SettingsSectionRegistry::normalize_id
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() SettingsSectionRegistry::normalize id code WC 10.9.1
private function normalize_id( string $id ): string {
return sanitize_title( $id );
}