WC_Shipping_Method::get_instance_option_key()publicWC 2.6.0

Return the name of the option in the WP DB.

Method of the class: WC_Shipping_Method{}

No Hooks.

Return

String.

Usage

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

Changelog

Since 2.6.0 Introduced.

WC_Shipping_Method::get_instance_option_key() code WC 8.7.0

public function get_instance_option_key() {
	return $this->instance_id ? $this->plugin_id . $this->id . '_' . $this->instance_id . '_settings' : '';
}