src/WPametu/Utility/WPametuCommand.php
public function akismet() {
		try {
			if ( ! class_exists( 'Akismet' ) ) {
				throw new \Exception( 'Akismet is not installed.' );
			}
			if ( ! ( $key = \Akismet::get_api_key() ) ) {
				throw new \Exception( 'Akismet API key is not set.' );
			}
			if ( 'valid' !== \Akismet::verify_key( $key ) ) {
				throw new \Exception( 'Akismet API key is invalid.' );
			}
			static::s( 'Akismet is available!' );
		} catch ( \Exception $e ) {
			static::e( $e->getMessage() );
		}
	}
public function akismet() {
		try {
			if ( ! class_exists( 'Akismet' ) ) {
				throw new \Exception( 'Akismet is not installed.' );
			}
			if ( ! ( $key = \Akismet::get_api_key() ) ) {
				throw new \Exception( 'Akismet API key is not set.' );
			}
			if ( 'valid' !== \Akismet::verify_key( $key ) ) {
				throw new \Exception( 'Akismet API key is invalid.' );
			}
			static::s( 'Akismet is available!' );
		} catch ( \Exception $e ) {
			static::e( $e->getMessage() );
		}
	}
public function akismet ( ) { try { if ( ! class_exists ( 'Akismet' ) ) { throw new \ Exception ( 'Akismet is not installed.' ) ; } if ( ! ( $ key = \ Akismet :: get_api_key ( ) ) ) { throw new \ Exception ( 'Akismet API key is not set.' ) ; } if ( 'valid' !== \ Akismet :: verify_key ( $ key ) ) { throw new \ Exception ( 'Akismet API key is invalid.' ) ; } static :: s ( 'Akismet is available!' ) ; } catch ( \ Exception $ e ) { static :: e ( $ e -> getMessage ( ) ) ; } }
Check if akismet is available

## OPTIONS

## EXAMPLES

wp ametu akismet

@synopsis
Check if akismet is available