'', //lockout id to release ); public function run( $arguments ) { /** @var ITSEC_Lockout $itsec_lockout */ global $itsec_lockout; $id = intval( $arguments['id'] ); $result = $itsec_lockout->release_lockout( $id ); if ( $result === false ) { $status = 'error'; } else { $status = 'ok'; } return array( 'api' => '0', 'status' => $status ); } }