public function processPost() {
		if ( $this->isPosting() ) {
			$releaseChannel = new ReleaseChannel;

			$key = new Key( $releaseChannel );

			$hashed_key = md5( $_POST['activateKey'] );

			$success = $key->addKey( $hashed_key );

			/*
			 * This option is used to setup an event similiar to WordPress' after_switch_theme hook.
			 * It allows us to take action on the page load following a new Connect Key being added.
			 */
			update_option( $this->option, $success ? 'success' : 'fail' );

			/*
			 * Refersh the current page so that when it reloads the new page begins with the user
			 * having a Connect Key installed. Otherwise, the current page will load and propmpt the
			 * user for a key even though we've just added one.
			 */
			header( 'Refresh:0' );
			exit;
		}
	}
public function processPost() {
		if ( $this->isPosting() ) {
			$releaseChannel = new ReleaseChannel;

			$key = new Key( $releaseChannel );

			$hashed_key = md5( $_POST['activateKey'] );

			$success = $key->addKey( $hashed_key );

			/*
			 * This option is used to setup an event similiar to WordPress' after_switch_theme hook.
			 * It allows us to take action on the page load following a new Connect Key being added.
			 */
			update_option( $this->option, $success ? 'success' : 'fail' );

			/*
			 * Refersh the current page so that when it reloads the new page begins with the user
			 * having a Connect Key installed. Otherwise, the current page will load and propmpt the
			 * user for a key even though we've just added one.
			 */
			header( 'Refresh:0' );
			exit;
		}
	}
public function processPost ( ) { if ( $ this -> isPosting ( ) ) { $ releaseChannel = new ReleaseChannel ; $ key = new Key ( $ releaseChannel ) ; $ hashed_key = md5 ( $ _POST [ 'activateKey' ] ) ; $ success = $ key -> addKey ( $ hashed_key ) ; /*
			 * This option is used to setup an event similiar to WordPress' after_switch_theme hook.
			 * It allows us to take action on the page load following a new Connect Key being added.
			 */ update_option ( $ this -> option , $ success ? 'success' : 'fail' ) ; /*
			 * Refersh the current page so that when it reloads the new page begins with the user
			 * having a Connect Key installed. Otherwise, the current page will load and propmpt the
			 * user for a key even though we've just added one.
			 */ header ( 'Refresh:0' ) ; exit ; } }
Handle the submission of an api key via a post call.

@since 2.8.0

@hook admin_init
Handle the submission of an api key via a post call .