Last active
September 12, 2016 21:45
-
-
Save tripflex/8ed8ded8af332c1753047daaa9cfefd2 to your computer and use it in GitHub Desktop.
Change the default WP Job Manager file upload directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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