WordPress at Your Fingertips
function is not described

WC_Gateway_COD::setup_properties() protected WC 1.0

Setup general properties for the gateway.

{} It's a method of the class: WC_Gateway_COD{}

Hooks from the method

null. Nothing.


// protected - for code of main (parent) or child class
$result = $this->setup_properties();

Code of WC_Gateway_COD::setup_properties() WC 5.6.0

protected function setup_properties() {
	$this->id                 = 'cod';
	$this->icon               = apply_filters( 'woocommerce_cod_icon', '' );
	$this->method_title       = __( 'Cash on delivery', 'woocommerce' );
	$this->method_description = __( 'Have your customers pay with cash (or by other means) upon delivery.', 'woocommerce' );
	$this->has_fields         = false;