Use this hook to add a new tab/settings group on the WordPress Download Manager settings page.
Example:
class CustomSettings{
function __construct(){
add_filter('add_wpdm_settings_tab', array($this, 'tab'));
}
function tab($tabs){
$tabs['new-tab-id'] = \WPDM\admin\menus\Settings::createMenu('new-tab-id', 'New Tab', array($this, 'tabPage'), 'fa fa-magic');
return $tabs;
}
function tabPage(){
if (wpdm_query_var('section', 'txt') === 'new-tab-id' && is_admin()) {
//Save Settings
_e('Saved Successfully!');
die();
}
?>
<!-- Setting page html here. -->
<?php
}
}
new CustomSettings();