akismet_get_api_key

akismet_get_api_key

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.1.1

apply_filters('akismet_get_api_key') is found 1 times:

  • /wp-content/plugins/akismet/class.akismet.php line 86
    		add_action( 'comment_form_after',  array( 'Akismet',  'display_comment_form_privacy_notice' ) );
    	}
    
    	public static function get_api_key() {
    		return apply_filters( 'akismet_get_api_key', defined('WPCOM_API_KEY') ? constant('WPCOM_API_KEY') : get_option('wordpress_api_key') );
    	}
    
    	public static function check_key_status( $key, $ip = null ) {
    		return self::http_post( Akismet::build_query( array( 'key' => $key, 'blog' => get_option( 'home' ) ) ), 'verify-key', $ip );
    	}