Mail settings implemented
This commit is contained in:
@ -14,6 +14,16 @@ class SettingsPage
|
||||
['Bdp\Modules\KompassSettings\Controllers\SettingsPage', 'kompass_settings_page_new']
|
||||
);
|
||||
|
||||
|
||||
add_submenu_page('options-general.php',
|
||||
'Mail',
|
||||
'Mail',
|
||||
'manage_options',
|
||||
'kompass-mail-settings',
|
||||
['Bdp\Modules\Mail\Controllers\MailSettingsController', 'settings_form']
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
public function __construct()
|
||||
{
|
||||
@ -23,14 +33,6 @@ class SettingsPage
|
||||
'manage_options',
|
||||
BDP_LV_PLUGIN_SLUG . '-Kompass-settings',
|
||||
[$this, 'option_page'],2048);
|
||||
|
||||
|
||||
add_options_page(
|
||||
__('Mail', BDP_LV_PLUGIN_SLUG) . ' - ' . __('Settings', BDP_LV_PLUGIN_SLUG),
|
||||
__('Mail', BDP_LV_PLUGIN_SLUG) . ' - ' . __('Settings', BDP_LV_PLUGIN_SLUG),
|
||||
'manage_options',
|
||||
BDP_LV_PLUGIN_SLUG . '-Kompass-mail-settings',
|
||||
[$this, 'mail_option_page'],2048);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user