Change the default WP Job Manager file upload directory

functions.php

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;
}
No comments yet.

Leave a Reply