WC_Checkout::get_checkout_fields
Get an array of checkout fields.
Метод класса: WC_Checkout{}
Хуков нет.
Возвращает
Массив
.
Использование
$WC_Checkout = new WC_Checkout(); $WC_Checkout->get_checkout_fields( $fieldset );
- $fieldset(строка)
- to get.
По умолчанию: ''
Код WC_Checkout::get_checkout_fields() WC Checkout::get checkout fields WC 9.9.3
public function get_checkout_fields( $fieldset = '' ) { if ( is_null( $this->fields ) ) { $this->initialize_checkout_fields(); } // If a fieldset is specified, return only the fields for that fieldset, or array if the field set does not exist. if ( $fieldset ) { return $this->fields[ $fieldset ] ?? array(); } return $this->fields; }