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


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.