Automattic\WooCommerce\Internal\Api\Autogenerated

TypeRegistry{}WC 1.0

Хуков нет.

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

$TypeRegistry = new TypeRegistry();
// use class methods

Методы

  1. public static get_interface_implementors()

Код TypeRegistry{} WC 11.0.1

class TypeRegistry {
	/**
	 * Return all concrete types that implement interfaces.
	 *
	 * Pass this to the Schema 'types' config so that inline fragments
	 * (e.g. `... on VariableProduct`) are resolvable.
	 *
	 * @return array
	 */
	public static function get_interface_implementors(): array {
		return array(
			ProductVariation::get(),
			ExternalProduct::get(),
			VariableProduct::get(),
			SimpleProduct::get(),
			Coupon::get(),
		);
	}
}