Docs / Filter Reference / add_wpdm_settings_tab

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 January 26, 2026

Need Help?

Get support from our team or community forum.

Visit Support

Customization

Need custom features? We can help.

Request Quote