Main Menu
Sub Menu

add_wpdm_settings_tab

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();
Last updated on Feb 22, 2023

Need More Clarification?

For any technical issue, if you are already using pro version please post in pro forum and free version users please post in free forum. Otherwise, if you have any pre-sale or order related query please contact live chat support team. For technical support.

Need Customization?

If you need additional customization on WordPress Download Manager or any type of custom support on WordPress you may contact our customization service.