Skip to content

[DevHub] wp_handle_upload_prefilter reference to upload_dir is unclear #2512

Open

Description

@crstauf

Issue Description

The reference to upload_dir is broad, and should be narrowed.

Reported by itsseanl via User Contributed Notes.

URL of the Page with the Issue

https://developer.wordpress.org/reference/hooks/wp_handle_upload_prefilter/#more-information

Section of Page with the issue

More Information

Why is this a problem?

It's unclear to what is being referred.

Suggested Fix

Original:

Using this, in conjunction with the upload_dir, you can

Fixed:

Using this, in conjunction with the upload_dir filter, you can

Activity

  1. github-actions commented on Sep 18, 2026

    @github-actions

    Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.

  2. changed the title [-]`wp_handle_upload_prefilter` reference to `upload_dir` is unclear[/-] [+][DevHub] `wp_handle_upload_prefilter` reference to `upload_dir` is unclear[/+] on Sep 28, 2026
  3. ahsanchowdhury commented on Oct 2, 2026

    @ahsanchowdhury

    I’d like to work on this documentation fix. /assign

  4. ahsanchowdhury commented on Oct 2, 2026

    @ahsanchowdhury

    Thanks, I’ll work on this.

    Proposed wording:

    “Using this, in conjunction with the upload_dir filter, you can dynamically determine which directory to upload to, based on the files you upload.”

    I verified that upload_dir is a filter documented here:
    https://developer.wordpress.org/reference/hooks/upload_dir/

    Please let me know whether this should be submitted as a documentation PR or updated directly in the Developer Reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions