Automattic\WooCommerce\Api\Attributes

HiddenFromMetadataQuery{}finalWC 1.0

[Attribute( Attribute::TARGET_CLASS | Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER | Attribute::TARGET_CLASS_CONSTANT )]

No Hooks.

Usage

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

Methods

  1. public shows_in_metadata_query()

HiddenFromMetadataQuery{} code WC 10.9.1

final class HiddenFromMetadataQuery {
	/**
	 * Always returns `false`. ApiBuilder calls this during the per-target
	 * `_apiMetadata` visibility check; the target is omitted from the
	 * discovery output as a result.
	 */
	public function shows_in_metadata_query(): bool {
		return false;
	}
}