Take the 2-minute tour ×
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
3  
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

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
1  
@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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.