wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Filters
  5. wpdiscuz_uploads_folder
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

wpdiscuz_uploads_folder

This filter can be used to modify the location of wpDiscuz attachments. By specifying a new folder name, it will automatically create that folder within the/uploads directory, and all wpDiscuz attachments will be stored there.

Changelog

since 7.6.20 version

Parameters

1. $folder – the name of the folder

Usage

add_filter("wpdiscuz_uploads_folder", function ($dir) {
    $dir  = "wpdiscuz_uploads";
    return $dir;
});

Was this article helpful to you? Yes No