Automattic\WooCommerce\Blocks\Payments\Integrations
CashOnDelivery::get_enable_for_virtual() private WC 1.0
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 5.2.2
private function get_enable_for_virtual() {
return filter_var( $this->get_setting( 'enable_for_virtual', false ), FILTER_VALIDATE_BOOLEAN );
}