/** * Loads Akismet inside the bbPress global class * * @since bbPress (r3277) * * @return If bbPress is not active */ function bbp_setup_akismet() { // Bail if no akismet if (!defined('AKISMET_VERSION')) { return; } // Bail if Akismet is turned off if (!bbp_is_akismet_active()) { return; } // Include the Akismet Component require bbpress()->includes_dir . 'extend/akismet.php'; // Instantiate Akismet for bbPress bbpress()->extend->akismet = new BBP_Akismet(); }
/** * Loads Akismet inside the bbPress global class * * @since bbPress (r3277) * * @return If bbPress is not active */ function bbp_setup_akismet() { // Bail if no akismet if (!defined('AKISMET_VERSION')) { return; } // Bail if Akismet is turned off if (!bbp_is_akismet_active()) { return; } // Instantiate Akismet for bbPress bbpress()->extend->akismet = new BBP_Akismet(); }
/** * Allow Akismet setting field * * @since 2.1.0 bbPress (r3575) * * @uses checked() To display the checked attribute */ function bbp_admin_setting_callback_akismet() { ?> <input name="_bbp_enable_akismet" id="_bbp_enable_akismet" type="checkbox" value="1" <?php checked(bbp_is_akismet_active(true)); bbp_maybe_admin_setting_disabled('_bbp_enable_akismet'); ?> /> <label for="_bbp_enable_akismet"><?php esc_html_e('Allow Akismet to actively prevent forum spam.', 'bbpress'); ?> </label> <?php }