MP_Addon_Slack::__construct()
Slack constructor.
Source Source
File: calculator-slack-notification-add-on/inc/MP_Addon_Slack.php
public function __construct() {
$this->options_style = get_option( MortgagePlatform::$prefix . 'style' );
$this->hook_url = get_option( MortgagePlatform::$prefix . 'slack' )['slack_url'] ?? '';
$this->channel = get_option( MortgagePlatform::$prefix . 'slack' )['slack_channel'] ?? '';
$this->username = MortgagePlatform::$plugin_name;
$this->text = get_option( MortgagePlatform::$prefix . 'slack' )['slack_text'] ?? '';
$this->icon = get_option( MortgagePlatform::$prefix . 'slack' )['slack_icon'] ?? '';
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |