• Resolved Vinnydude

    (@vinnydude)


    Is it possible to set the default folder that you land on in the file manager?

    For example, wp-content/uploads would be the folder shown when you clicked on file manager.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Aftabul Islam

    (@aihimel)

    @vinnydude

    Yes it is possible. Copy paste the following code in your functions.php or you can create your own plugin.

    
    add_filter('fm_options', 'change_options', 10, 1);
     
    function change_options($opts){
     
        $opts['roots'][0]['path'] .= 'wp-content/uploads';
        $opts['roots'][0]['URL'] .= 'wp-content/uploads';
     
        return $opts;
     
    }
    

    Thanks
    AftabulIslam

Viewing 1 replies (of 1 total)
  • The topic ‘Default Landing Directory?’ is closed to new replies.