ExtendRestApi::register_endpoint_data( array $args )
An endpoint that validates registration method call
Description Description
Parameters Parameters
- $args
-
(Required) An array of elements that make up a post to update or insert.
- 'endpoint'
(string) The endpoint to extend. - 'namespace'
(string) Plugin namespace. - 'schema_callback'
(callable) Callback executed to add schema data. - 'data_callback'
(callable) Callback executed to add endpoint data. - 'data_type'
(string) The type of data, object or array.
- 'endpoint'
Return Return
(boolean) True on success.
Source Source
File: packages/woocommerce-blocks/src/Domain/Services/ExtendRestApi.php