WooCommerce Code Reference

Name
in package

Overrides the GraphQL name derived from the PHP class or property name.

By default the builder converts PHP names to GraphQL conventions automatically. Use this attribute when you need a specific GraphQL name that differs from the default conversion (e.g. a legacy name for backwards compatibility).

Table of Contents

__construct()  : mixed
Constructor.

Methods

__construct()

Constructor.

public __construct(string $name) : mixed
Parameters
$name : string

The exact name to use in the GraphQL schema.

Return values
mixed