Automattic\WooCommerce\Admin\Settings
SettingsSectionRegistry::normalize_id
Normalize page and section identifiers.
Метод класса: SettingsSectionRegistry{}
Хуков нет.
Возвращает
Строку.
Использование
// private - только в коде основоного (родительского) класса $result = $this->normalize_id( $id ): string;
- $id(строка) (обязательный)
- Identifier.
Код SettingsSectionRegistry::normalize_id() SettingsSectionRegistry::normalize id WC 10.9.1
private function normalize_id( string $id ): string {
return sanitize_title( $id );
}