WordPress at Your Fingertips
function is not described

WC_Shipping_Method::get_instance_form_fields() public WC 2.6.0

Get settings fields for instances of this shipping method (within zones). Should be overridden by shipping methods to add options.

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

Return

Array.

Usage

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

Changelog

Since 2.6.0 Introduced.

Code of WC_Shipping_Method::get_instance_form_fields() WC 5.8.0

public function get_instance_form_fields() {
	return apply_filters( 'woocommerce_shipping_instance_form_fields_' . $this->id, array_map( array( $this, 'set_defaults' ), $this->instance_form_fields ) );
}