Hello, I just started my blognetwork with wordpress and is wondering how I can autoactivate akismet for everybody that creates a new blog on the network without they having to get a key themself and activate it?
Hello, I just started my blognetwork with wordpress and is wondering how I can autoactivate akismet for everybody that creates a new blog on the network without they having to get a key themself and activate it?
assuming you have purchased the appropriate API
open askimet.php
find the line
$wpcom_api_key = '';
enter your API to look like
if ( defined('WPCOM_API_KEY') )
$wpcom_api_key = constant('WPCOM_API_KEY');
else
$wpcom_api_key = 'ENTER YOUR API NUMBER HERE';
yYou should set the definition of WPCOM_API_KEY in wp-config.php, not in akismet.php. That way the setting will be preserved even after you update the Akismet plugin.
This topic has been closed to new replies.