Automattic\WooCommerce\Api\Attributes
HiddenFromMetadataQuery{}
[Attribute( Attribute::TARGET_CLASS | Attribute::TARGET_PROPERTY | Attribute::TARGET_PARAMETER | Attribute::TARGET_CLASS_CONSTANT )]Хуков нет.
Использование
$HiddenFromMetadataQuery = new HiddenFromMetadataQuery(); // use class methods
Методы
- public shows_in_metadata_query()
Код HiddenFromMetadataQuery{} HiddenFromMetadataQuery{} WC 11.0.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;
}
}