Incoming_Webhook::rest_api_endpoint()
rest_api_endpoint Create an endpoint so that the process can run at background https://site_domain/wp-json/uap/v2/automator/
Return Return
(void)
Source Source
File: src/core/classes/class-incoming-webhook.php
public function rest_api_endpoint() { register_rest_route( AUTOMATOR_REST_API_END_POINT, '/automator/' . $this->endpoint, array( 'methods' => 'POST', 'callback' => array( $this, 'process_rest_call' ), 'permission_callback' => array( $this, 'validate_rest_call' ) ) ); }
Expand full source code Collapse full source code View on Github