{"action":"closed","issue":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1959","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1959/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1959/comments","events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1959/events","html_url":"https://github.com/wp-cli/wp-cli/issues/1959","id":98732556,"number":1959,"title":"Allow subclassing/overriding the WP_Import class","user":{"login":"rmccue","id":21655,"avatar_url":"https://avatars.githubusercontent.com/u/21655?v=3","gravatar_id":"","url":"https://api.github.com/users/rmccue","html_url":"https://github.com/rmccue","followers_url":"https://api.github.com/users/rmccue/followers","following_url":"https://api.github.com/users/rmccue/following{/other_user}","gists_url":"https://api.github.com/users/rmccue/gists{/gist_id}","starred_url":"https://api.github.com/users/rmccue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmccue/subscriptions","organizations_url":"https://api.github.com/users/rmccue/orgs","repos_url":"https://api.github.com/users/rmccue/repos","events_url":"https://api.github.com/users/rmccue/events{/privacy}","received_events_url":"https://api.github.com/users/rmccue/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wp-cli/wp-cli/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/wp-cli/wp-cli/labels/scope:command","name":"scope:command","color":"e102d8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-03T12:22:13Z","updated_at":"2015-09-20T13:27:42Z","closed_at":"2015-09-20T13:27:42Z","body":"Right now, wp-cli manually creates a new instance of the `WP_Import` class. This doesn't obey whatever's registered via `register_importer`, which is super annoying if you need to subclass the importer.\r\n\r\nIn addition, the methods are all declared `private`, so if you want to make your own custom import command, you can't simply subclass and override. `protected` would be mucho better here."}}