Clanbite

clanbite_with_upload_subdir( string $relative_dir, callable $callback ): mixed

Run a callback with upload_dir forced to a subdirectory of the uploads base (path + url + subdir).

Parameters

$relative_dir (string) Required

Path under uploads base, e.g. clanbite/teams/1/matches/staging (no leading slash).

$callback (callable) Required

Invoked while the filter is active.

Returns

mixed Return value of $callback.

Defined in inc/clanbite-team-challenge-uploads.php