Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

ExtendRestApi::format_extensions_properties( string $namespace, array $schema, string $data_type )

Format schema for an extension.


Description Description


Parameters Parameters

$namespace

(Required) Error message or Exception.

$schema

(Required) An error to throw if we have debug enabled and user is admin.

$data_type

(Required) How should data be shaped.


Top ↑

Return Return

(array) Formatted schema.


Top ↑

Source Source

File: packages/woocommerce-blocks/src/Domain/Services/ExtendRestApi.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.