Skip to content

Instantly share code, notes, and snippets.

@tripflex
Last active September 12, 2016 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tripflex/8ed8ded8af332c1753047daaa9cfefd2 to your computer and use it in GitHub Desktop.
Save tripflex/8ed8ded8af332c1753047daaa9cfefd2 to your computer and use it in GitHub Desktop.
Change the default WP Job Manager file upload directory
add_filter( 'job_manager_upload_dir', 'my_custom_job_manager_upload_dir' );
function my_custom_job_manager_upload_dir( $job_manager_uploading_file ) {
// This is the default below
// $dir = 'job-manager-uploads/' . $job_manager_uploading_file;
// This is using a custom directory, make sure to add $job_manager_uploading_file to the end of the string
$dir = 'custom_jm_uploads/' . $job_manager_uploading_file;
return $dir;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment