{"action":"opened","issue":{"url":"https://api.github.com/repos/Chr15t1anRJW/Wordpress-conveyour-hooks/issues/1","repository_url":"https://api.github.com/repos/Chr15t1anRJW/Wordpress-conveyour-hooks","labels_url":"https://api.github.com/repos/Chr15t1anRJW/Wordpress-conveyour-hooks/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Chr15t1anRJW/Wordpress-conveyour-hooks/issues/1/comments","events_url":"https://api.github.com/repos/Chr15t1anRJW/Wordpress-conveyour-hooks/issues/1/events","html_url":"https://github.com/Chr15t1anRJW/Wordpress-conveyour-hooks/issues/1","id":143595447,"number":1,"title":"Unnecessary calling of conveyour_identify leading to network latency.","user":{"login":"srhyne","id":343286,"avatar_url":"https://avatars.githubusercontent.com/u/343286?v=3","gravatar_id":"","url":"https://api.github.com/users/srhyne","html_url":"https://github.com/srhyne","followers_url":"https://api.github.com/users/srhyne/followers","following_url":"https://api.github.com/users/srhyne/following{/other_user}","gists_url":"https://api.github.com/users/srhyne/gists{/gist_id}","starred_url":"https://api.github.com/users/srhyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srhyne/subscriptions","organizations_url":"https://api.github.com/users/srhyne/orgs","repos_url":"https://api.github.com/users/srhyne/repos","events_url":"https://api.github.com/users/srhyne/events{/privacy}","received_events_url":"https://api.github.com/users/srhyne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-25T20:53:14Z","updated_at":"2016-03-25T20:53:14Z","closed_at":null,"body":"In [is_paying_cx_tag]https://github.com/Chr15t1anRJW/Wordpress-conveyour-hooks/blob/master/conveyour-identify-and-events.php#L69\r\n\r\n- Outside of the `foreach` have a `$total = 0;` value..\r\n- in the foreach  `$total += product_price`;\r\n- outside of the foreach..\r\n\r\n`if( $total ){ conveyour_identify($user, ['is_paying' => true ] );  }`\r\n"}}