Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a CSV file with email addresses i want to import into Wordpress.coms Jetpack subscriptions.

share|improve this question

closed as off-topic by Johannes Pille, Pieter Goosen, cybmeta, birgire, anu Nov 12 '14 at 15:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

And your research effort is …? – toscho Jun 23 '12 at 18:03
Not possible based on my research. If they are stored in the database then i should be able to import them but its too technical for me so i need help with this one. Curious to see if anybody has done this. – user16465 Jun 23 '12 at 18:28

1 Answer 1 Jetpack subscriptions are not hosted on your site, they're hosted on the servers. So you can't add directly to the database.

However, if you take a look at the Jetpack plugin code, it outlines the XML-RPC calls used to interface with and add subscribers. So you could build your own importer ...

// Some kind of function that parses your CSV file into an array of email addresses
$subscribers = get_subscribers_from_csv(); 

foreach( $subscribers as $email) {
    Jetpack_Subscriptions::subscribe( $email );
share|improve this answer
Is that it? Will this code work? – user16465 Jun 23 '12 at 19:54
@braddalton Test it. Sooner or later you have to get your own hands dirty. – toscho Jun 23 '12 at 21:55
Happy too but not sure how would react! Cannot test Jetpack locally – user16465 Jul 1 '12 at 10:03