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 want Akismet to be activated by default on installation with my Akismet API key. I am making my own distribution that I will use on my own sites and I want the plugin and key to already be activated when installing a new wordpress site.

share|improve this question
    
take a look at this wordpress.stackexchange.com/questions/4041/… –  Bainternet Feb 17 '12 at 14:46
    
How would you be providing the key? Are you trying to dynamically get an API Key that is used in the install? –  Kyle Feb 17 '12 at 17:46

1 Answer 1

up vote 0 down vote accepted

The link Bainternet provides looks quite promising. Now you only need to automatticaly add the API key. Akismet has a constant for this called *WPCOM_API_KEY* (source code).

So you could add something like this to your wp-config.php file and Akismet would use it as API key.

define( 'WPCOM_API_KEY', 'abcd1234efgh' );
share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.