WC_Shipping_Method::get_admin_options_html()publicWC 1.0

Return admin options as a html string.

{} Это метод класса: WC_Shipping_Method{}

Хуков нет.

Возвращает

Строку.

Использование

$WC_Shipping_Method = new WC_Shipping_Method();
$WC_Shipping_Method->get_admin_options_html();

Код WC_Shipping_Method::get_admin_options_html() WC 6.9.4

public function get_admin_options_html() {
	if ( $this->instance_id ) {
		$settings_html = $this->generate_settings_html( $this->get_instance_form_fields(), false );
	} else {
		$settings_html = $this->generate_settings_html( $this->get_form_fields(), false );
	}

	return '<table class="form-table">' . $settings_html . '</table>';
}