Automattic\WooCommerce\Blocks\Payments\Integrations
CashOnDelivery::get_enable_for_virtual
Return enable_for_virtual option.
Метод класса: CashOnDelivery{}
Хуков нет.
Возвращает
true|false. True if store allows COD payment for orders containing only virtual products.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_enable_for_virtual();
Код CashOnDelivery::get_enable_for_virtual() CashOnDelivery::get enable for virtual WC 10.8.1
private function get_enable_for_virtual() {
return filter_var( $this->get_setting( 'enable_for_virtual', false ), FILTER_VALIDATE_BOOLEAN );
}