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

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment