WC_Settings_Shipping::output()
Output the settings.
Метод класса: WC_Settings_Shipping{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Settings_Shipping = new WC_Settings_Shipping(); $WC_Settings_Shipping->output();
Код WC_Settings_Shipping::output() WC Settings Shipping::output WC 9.4.2
public function output() { global $current_section, $hide_save_button; // Load shipping methods so we can show any global options they may have. $shipping_methods = $this->get_shipping_methods(); if ( '' === $current_section ) { $this->output_zones_screen(); } elseif ( 'classes' === $current_section ) { $hide_save_button = true; $this->output_shipping_class_screen(); } else { $is_shipping_method = false; foreach ( $shipping_methods as $method ) { if ( in_array( $current_section, array( $method->id, sanitize_title( get_class( $method ) ) ), true ) && $method->has_settings() ) { $is_shipping_method = true; $method->admin_options(); } } if ( ! $is_shipping_method ) { parent::output(); } } }