Projects Directory : Convert PHP Code to Wordpress Plugin - Convert PHP function to HTTP API