WC_Shipping::instance()
Main WC_Shipping Instance.
Ensures only one instance of WC_Shipping is loaded or can be loaded.
Метод класса: WC_Shipping{}
Хуков нет.
Возвращает
WC_Shipping
. Main instance
Использование
$result = WC_Shipping::instance();
Список изменений
С версии 2.1 | Введена. |
Код WC_Shipping::instance() WC Shipping::instance WC 9.6.1
public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; }