WC_Settings_Payment_Gateways::is_registered_settings_section │ private │ WC 1.0

Check if a section is registered through the settings section registry.

Method of the class: WC_Settings_Payment_Gateways{}

No Hooks.

Returns

bool.

Usage

// private - for code of main (parent) class only
$result = $this->is_registered_settings_section( $section ): bool;
$section(mixed) (required)
Section id.

WC_Settings_Payment_Gateways::is_registered_settings_section() code WC 11.1.2

private function is_registered_settings_section( $section ): bool {
	if ( '' === (string) $section ) {
		return false;
	}

	$registry = $this->get_settings_section_registry();

	return null !== $registry && null !== $registry->get_registered( self::TAB_NAME, (string) $section );
}