WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

WordPress.com Jetpack subscriptions are not hosted on your site, they're hosted on the WordPress.com 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 WordPress.com 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 WordPress.com would react! Cannot test Jetpack locally – user16465 Jul 1 '12 at 10:03