WC_Gateway_COD::setup_properties()
Setup general properties for the gateway.
Метод класса: WC_Gateway_COD{}
Хуки из метода
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->setup_properties();
Код WC_Gateway_COD::setup_properties() WC Gateway COD::setup properties WC 9.7.1
protected function setup_properties() { $this->id = self::ID; $this->icon = apply_filters( 'woocommerce_cod_icon', '' ); $this->method_title = __( 'Cash on delivery', 'woocommerce' ); $this->method_description = __( 'Let your shoppers pay upon delivery — by cash or other methods of payment.', 'woocommerce' ); $this->has_fields = false; }