Akismet::__construct()
Description #
Initialize the class.
Source #
File: addons/akismet/akismet.php
protected function __construct() { // Return if akisment is not enabled. if ( ! class_exists( 'Akismet' ) ) { return; } ap_add_default_options( array( 'spam_post_action' => 'moderate' ) ); anspress()->add_filter( 'ap_settings_menu_features_groups', $this, 'add_to_settings_page' ); anspress()->add_filter( 'ap_form_options_features_akismet', $this, 'option_form' ); anspress()->add_action( 'ap_after_question_form_processed', $this, 'new_question_answer' ); anspress()->add_action( 'ap_after_answer_form_processed', $this, 'new_question_answer' ); anspress()->add_action( 'admin_action_ap_mark_spam', $this, 'submit_spam' ); anspress()->add_action( 'post_row_actions', $this, 'row_actions', 10, 2 ); }
Expand full source code Collapse full source code View on GitHub: addons/akismet/akismet.php:50
Add your comment