WC_Shipping_Method::has_settings()publicWC 1.0

Does this method have a settings page?

{} Это метод класса: WC_Shipping_Method{}

Хуков нет.

Возвращает

true|false.

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

$WC_Shipping_Method = new WC_Shipping_Method();
$WC_Shipping_Method->has_settings();

Код WC_Shipping_Method::has_settings() WC 6.9.1

public function has_settings() {
	return $this->instance_id ? $this->supports( 'instance-settings' ) : $this->supports( 'settings' );
}