Activate Akismet on installation with akismet key

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’ );

Can the Akismet API key be pulled from the plugin?

After reading several articles, discussing with the community, diving through the Akismet documentation and reviewing their plugin I’ve found if you want test to see if the plugin is active or deactivate you can use: if (function_exists(‘akismet_verify_key’)) : echo “true”; else : echo “false”; endif; After activating the plugin and entering the API key in … Read more