LLMS_Abstract_Email_Provider::add_settings( array $settings )
Add Settings.
Parameters Parameters
- $settings
-
(array) (Required) Existing settings.
Return Return
(array)
Source Source
File: includes/abstracts/llms-abstract-email-provider.php
public function add_settings( $settings ) {
// Short circuit if missing authorization.
if ( ! current_user_can( 'install_plugins' ) ) {
return $settings;
}
$new_settings = array(
array(
'id' => $this->id . '_title',
'type' => 'subtitle',
'title' => $this->get_title(),
'desc' => $this->is_connected() ? '' : $this->get_description(),
),
array(
'id' => $this->id . '_connect',
'type' => 'custom-html',
'value' => $this->get_connect_setting(),
),
);
return array_merge( $settings, $new_settings );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.40.0 | Introduced. |