WooCommerce Code Reference

Description
in package

Provides a human-readable description for the annotated element.

Can be applied to classes (types, queries, mutations, enums), properties, or parameters. The text is exposed as the "description" field in the generated GraphQL schema and is visible in tools like GraphiQL.

Table of Contents

__construct()  : mixed
Constructor.

Methods

__construct()

Constructor.

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

The text to expose as the GraphQL description.

Return values
mixed