• Hello,
    
    Conflict with our function and not working our code. Please check
    
    function gist_acf_upload_dir($param)
    
    {
    
    $custom_dir = '/uploads/newdir';
    
    $param['path'] = WP_CONTENT_DIR . $custom_dir;
    
    $param['url'] = WP_CONTENT_URL . $custom_dir;
    
    return $param;
    
    }
    
    add_filter('acf/upload_prefilter/name=version_build', 'secure_files_field_display');
    
    function secure_files_field_display($field)
    
    {
    
    add_filter('upload_dir', 'gist_acf_upload_dir');
    
    return $field;
    
    }
    
    Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.