wp cellartracker integration

receives request from cellartracker, redirect to login if necessary, redirect back to requested page once logged in.

if/once loggedin:

check  input parameters. If all ok,  update user with cellar tracker id, retrieves expiry date, returns expiry to cellartracker via wp_remote_get.  Reports success of failure of that on page with offer of link back to cellartracker.

if failure of any validation, drops through and displays message.

  • amr-wp-integration1.2