{"action":"created","comment":{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments/37081496","id":37081496,"diff_hunk":"@@ -88,4 +89,12 @@ private function get_organizer_column_names() {\n \t\t\t'organizer_phone'   => __( 'Organizer Phone', 'tribe-events-calendar' ),\n \t\t);\n \t}\n+\n+\tprivate function get_additional_fields_column_names() {\n+\t\t$additionalFields = tribe_get_option( 'custom-fields' );\n+\t\treturn array_combine(\n+\t\t\tarray_map(function($field) { return $field['name']; }, $additionalFields),","path":"src/Tribe/Importer/Column_Mapper.php","position":18,"original_position":18,"commit_id":"a7baf5eeb5e9ce78d64c8c89e61cda444e2eb779","original_commit_id":"a7baf5eeb5e9ce78d64c8c89e61cda444e2eb779","user":{"login":"bordoni","id":236579,"avatar_url":"https://avatars.githubusercontent.com/u/236579?v=3","gravatar_id":"","url":"https://api.github.com/users/bordoni","html_url":"https://github.com/bordoni","followers_url":"https://api.github.com/users/bordoni/followers","following_url":"https://api.github.com/users/bordoni/following{/other_user}","gists_url":"https://api.github.com/users/bordoni/gists{/gist_id}","starred_url":"https://api.github.com/users/bordoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bordoni/subscriptions","organizations_url":"https://api.github.com/users/bordoni/orgs","repos_url":"https://api.github.com/users/bordoni/repos","events_url":"https://api.github.com/users/bordoni/events{/privacy}","received_events_url":"https://api.github.com/users/bordoni/received_events","type":"User","site_admin":false},"body":"Same thing here with the Anonymous function, on the first one you should use `wp_list_pluck`.\r\n\r\nOn the second one, you could `sprintf( __( 'Event %s', 'tribe-events-calendar' ), $field['label'] );` but create a method on the class to do it.","created_at":"2015-08-14T14:30:45Z","updated_at":"2015-08-14T14:30:45Z","html_url":"https://github.com/moderntribe/the-events-calendar/pull/262#discussion_r37081496","pull_request_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/262","_links":{"self":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments/37081496"},"html":{"href":"https://github.com/moderntribe/the-events-calendar/pull/262#discussion_r37081496"},"pull_request":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/262"}}},"pull_request":{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/262","id":42451493,"html_url":"https://github.com/moderntribe/the-events-calendar/pull/262","diff_url":"https://github.com/moderntribe/the-events-calendar/pull/262.diff","patch_url":"https://github.com/moderntribe/the-events-calendar/pull/262.patch","issue_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/262","number":262,"state":"open","locked":false,"title":"Include \"Additional Fields\" in CSV import","user":{"login":"zacwasielewski","id":370034,"avatar_url":"https://avatars.githubusercontent.com/u/370034?v=3","gravatar_id":"","url":"https://api.github.com/users/zacwasielewski","html_url":"https://github.com/zacwasielewski","followers_url":"https://api.github.com/users/zacwasielewski/followers","following_url":"https://api.github.com/users/zacwasielewski/following{/other_user}","gists_url":"https://api.github.com/users/zacwasielewski/gists{/gist_id}","starred_url":"https://api.github.com/users/zacwasielewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacwasielewski/subscriptions","organizations_url":"https://api.github.com/users/zacwasielewski/orgs","repos_url":"https://api.github.com/users/zacwasielewski/repos","events_url":"https://api.github.com/users/zacwasielewski/events{/privacy}","received_events_url":"https://api.github.com/users/zacwasielewski/received_events","type":"User","site_admin":false},"body":"This branch allows the inclusion of [Additional Fields](https://theeventscalendar.com/knowledgebase/pro-additional-fields/) (a PRO feature) in CSV imports.\r\n\r\nThis seems to be a popular feature request:\r\n\r\n- https://theeventscalendar.com/support/forums/topic/import-to-custom-field/\r\n- https://theeventscalendar.com/support/forums/topic/additional-fields-in-csv-import/\r\n- https://theeventscalendar.com/support/forums/topic/mapping-additional-fields-for-csv-import/\r\n- https://theeventscalendar.com/support/forums/topic/csv-import-to-additional-fields/\r\n- https://theeventscalendar.com/support/forums/topic/importing-a-csv-with-custom-fields/\r\n- https://theeventscalendar.com/support/forums/topic/making-additional-fields-items-available-to-the-csv-import-function/\r\n- http://tribe.uservoice.com/forums/195723-feature-ideas/suggestions/5076620-add-custom-fields-to-csv-importer\r\n","created_at":"2015-08-14T12:38:40Z","updated_at":"2015-08-14T14:30:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03ac93dca4f50c5cf135181528aa06c3b6adef62","assignee":{"login":"bordoni","id":236579,"avatar_url":"https://avatars.githubusercontent.com/u/236579?v=3","gravatar_id":"","url":"https://api.github.com/users/bordoni","html_url":"https://github.com/bordoni","followers_url":"https://api.github.com/users/bordoni/followers","following_url":"https://api.github.com/users/bordoni/following{/other_user}","gists_url":"https://api.github.com/users/bordoni/gists{/gist_id}","starred_url":"https://api.github.com/users/bordoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bordoni/subscriptions","organizations_url":"https://api.github.com/users/bordoni/orgs","repos_url":"https://api.github.com/users/bordoni/repos","events_url":"https://api.github.com/users/bordoni/events{/privacy}","received_events_url":"https://api.github.com/users/bordoni/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/262/commits","review_comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/262/comments","review_comment_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/262/comments","statuses_url":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/a7baf5eeb5e9ce78d64c8c89e61cda444e2eb779","head":{"label":"zacwasielewski:feature/import-additional-fields","ref":"feature/import-additional-fields","sha":"a7baf5eeb5e9ce78d64c8c89e61cda444e2eb779","user":{"login":"zacwasielewski","id":370034,"avatar_url":"https://avatars.githubusercontent.com/u/370034?v=3","gravatar_id":"","url":"https://api.github.com/users/zacwasielewski","html_url":"https://github.com/zacwasielewski","followers_url":"https://api.github.com/users/zacwasielewski/followers","following_url":"https://api.github.com/users/zacwasielewski/following{/other_user}","gists_url":"https://api.github.com/users/zacwasielewski/gists{/gist_id}","starred_url":"https://api.github.com/users/zacwasielewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacwasielewski/subscriptions","organizations_url":"https://api.github.com/users/zacwasielewski/orgs","repos_url":"https://api.github.com/users/zacwasielewski/repos","events_url":"https://api.github.com/users/zacwasielewski/events{/privacy}","received_events_url":"https://api.github.com/users/zacwasielewski/received_events","type":"User","site_admin":false},"repo":{"id":40679449,"name":"the-events-calendar","full_name":"zacwasielewski/the-events-calendar","owner":{"login":"zacwasielewski","id":370034,"avatar_url":"https://avatars.githubusercontent.com/u/370034?v=3","gravatar_id":"","url":"https://api.github.com/users/zacwasielewski","html_url":"https://github.com/zacwasielewski","followers_url":"https://api.github.com/users/zacwasielewski/followers","following_url":"https://api.github.com/users/zacwasielewski/following{/other_user}","gists_url":"https://api.github.com/users/zacwasielewski/gists{/gist_id}","starred_url":"https://api.github.com/users/zacwasielewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacwasielewski/subscriptions","organizations_url":"https://api.github.com/users/zacwasielewski/orgs","repos_url":"https://api.github.com/users/zacwasielewski/repos","events_url":"https://api.github.com/users/zacwasielewski/events{/privacy}","received_events_url":"https://api.github.com/users/zacwasielewski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zacwasielewski/the-events-calendar","description":"The Events Calendar WordPress plugin by Modern Tribe","fork":true,"url":"https://api.github.com/repos/zacwasielewski/the-events-calendar","forks_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/forks","keys_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/teams","hooks_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/hooks","issue_events_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/events","assignees_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/tags","blobs_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/languages","stargazers_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/stargazers","contributors_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/contributors","subscribers_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/subscribers","subscription_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/subscription","commits_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/merges","archive_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/downloads","issues_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/labels{/name}","releases_url":"https://api.github.com/repos/zacwasielewski/the-events-calendar/releases{/id}","created_at":"2015-08-13T20:09:13Z","updated_at":"2015-08-13T20:09:15Z","pushed_at":"2015-08-14T04:38:36Z","git_url":"git://github.com/zacwasielewski/the-events-calendar.git","ssh_url":"git@github.com:zacwasielewski/the-events-calendar.git","clone_url":"https://github.com/zacwasielewski/the-events-calendar.git","svn_url":"https://github.com/zacwasielewski/the-events-calendar","homepage":null,"size":61364,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"release/121"}},"base":{"label":"moderntribe:release/121","ref":"release/121","sha":"0c60c567641a54a6f9b472502de7e67178d285f3","user":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"repo":{"id":16366134,"name":"the-events-calendar","full_name":"moderntribe/the-events-calendar","owner":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moderntribe/the-events-calendar","description":"The Events Calendar WordPress plugin by Modern Tribe","fork":false,"url":"https://api.github.com/repos/moderntribe/the-events-calendar","forks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/forks","keys_url":"https://api.github.com/repos/moderntribe/the-events-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moderntribe/the-events-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moderntribe/the-events-calendar/teams","hooks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/hooks","issue_events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/events","assignees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/moderntribe/the-events-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/tags","blobs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/moderntribe/the-events-calendar/languages","stargazers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/stargazers","contributors_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contributors","subscribers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscribers","subscription_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscription","commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/moderntribe/the-events-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moderntribe/the-events-calendar/merges","archive_url":"https://api.github.com/repos/moderntribe/the-events-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moderntribe/the-events-calendar/downloads","issues_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/moderntribe/the-events-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/moderntribe/the-events-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moderntribe/the-events-calendar/labels{/name}","releases_url":"https://api.github.com/repos/moderntribe/the-events-calendar/releases{/id}","created_at":"2014-01-30T02:17:01Z","updated_at":"2015-08-07T06:10:49Z","pushed_at":"2015-08-14T12:38:40Z","git_url":"git://github.com/moderntribe/the-events-calendar.git","ssh_url":"git@github.com:moderntribe/the-events-calendar.git","clone_url":"https://github.com/moderntribe/the-events-calendar.git","svn_url":"https://github.com/moderntribe/the-events-calendar","homepage":null,"size":61364,"stargazers_count":66,"watchers_count":66,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":9,"forks":63,"open_issues":9,"watchers":66,"default_branch":"release/121"}},"_links":{"self":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/262"},"html":{"href":"https://github.com/moderntribe/the-events-calendar/pull/262"},"issue":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/262"},"comments":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/262/comments"},"review_comments":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/262/comments"},"review_comment":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/262/commits"},"statuses":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/a7baf5eeb5e9ce78d64c8c89e61cda444e2eb779"}}}}