WC_Settings_Payment_Gateways::standardize_section_name
Standardize the current section name.
Метод класса: WC_Settings_Payment_Gateways{}
Хуков нет.
Возвращает
Строку. The standardized section name.
Использование
// private - только в коде основоного (родительского) класса $result = $this->standardize_section_name( $section ): string;
- $section(разное) (обязательный)
- The section name to standardize.
Код WC_Settings_Payment_Gateways::standardize_section_name() WC Settings Payment Gateways::standardize section name WC 10.9.1
private function standardize_section_name( $section ): string {
$section = (string) $section;
// If the section is empty, we are on the main settings page/section. Use a standardized name.
if ( '' === $section ) {
return self::MAIN_SECTION_NAME;
}
return $section;
}