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.


Top ↑

Return Return

(boolean) True on success.


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.