humanmade / humanmade/WordPress-Importer
provide a hook inside fetch_remote_file for ease mass file fetching
Open
- Dominant language
- PHP
- Stars
- 359
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
I'd like to see a hook inside `fetch_remote_file`.
That way I could substitute things like `https://domain.net/files/FOO` by `file:///locally-synchronized/FOO`
and dramatically increase importation (especially testing importations).
Playing with `$remote_url` is not an option since it's used later for remapping.
Contributor guide
Research direction
Start by locating fetch_remote_file and reading how $remote_url is used before and after the fetch. Trace its callers and existing tests, if present. Done means a hook can substitute local file URLs for remote URLs while preserving the later remapping behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100