Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Mailchimp_Helpers::init_webhook()
Initialize the webhook rest api endpoint.
Return Return
(Uncanny_Automatorvoid.)
Source Source
File: src/integrations/mailchimp/helpers/mailchimp-helpers.php
public function init_webhook() { if ( $this->is_webhook_enabled() && $this->has_connection_data() ) { register_rest_route( AUTOMATOR_REST_API_END_POINT, $this->webhook_endpoint, array( 'methods' => array( 'POST', 'GET' ), 'callback' => array( $this, 'webhook_callback' ), 'permission_callback' => array( $this, 'validate_webhook' ), ) ); } }
Expand full source code Collapse full source code View on Github