Incoming_Webhook::__construct( $endpoint,  $validation,  $action )

__construct

Contents


Return Return

(void)


Source Source

File: src/core/classes/class-incoming-webhook.php

    public function __construct( $endpoint, $validation, $action )
    {
        $this->endpoint = $endpoint;
        $this->validation = $validation;
        $this->action = $action;
        add_action('rest_api_init', array( $this, 'rest_api_endpoint' ));
    }