Automattic\WooCommerce\Blocks\Payments\Integrations

AbstractPaymentMethodType::get_setting()protectedWC 1.0

Get a setting from the settings array if set.

Метод класса: AbstractPaymentMethodType{}

Хуков нет.

Возвращает

Разное.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_setting( $name, $default );
$name(строка) (обязательный)
Setting name.
$default(разное)
Value that is returned if the setting does not exist.
По умолчанию: ''

Код AbstractPaymentMethodType::get_setting() WC 8.7.0

protected function get_setting( $name, $default = '' ) {
	return isset( $this->settings[ $name ] ) ? $this->settings[ $name ] : $default;
}