{"action":"created","issue":{"url":"https://api.github.com/repos/woothemes/sensei/issues/1021","labels_url":"https://api.github.com/repos/woothemes/sensei/issues/1021/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/sensei/issues/1021/comments","events_url":"https://api.github.com/repos/woothemes/sensei/issues/1021/events","html_url":"https://github.com/woothemes/sensei/issues/1021","id":99182687,"number":1021,"title":"Separate the markup from the logic for the Sensei details in the WooCommerce Email ","user":{"login":"danieldudzic","id":905781,"avatar_url":"https://avatars.githubusercontent.com/u/905781?v=3","gravatar_id":"","url":"https://api.github.com/users/danieldudzic","html_url":"https://github.com/danieldudzic","followers_url":"https://api.github.com/users/danieldudzic/followers","following_url":"https://api.github.com/users/danieldudzic/following{/other_user}","gists_url":"https://api.github.com/users/danieldudzic/gists{/gist_id}","starred_url":"https://api.github.com/users/danieldudzic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danieldudzic/subscriptions","organizations_url":"https://api.github.com/users/danieldudzic/orgs","repos_url":"https://api.github.com/users/danieldudzic/repos","events_url":"https://api.github.com/users/danieldudzic/events{/privacy}","received_events_url":"https://api.github.com/users/danieldudzic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-05T11:26:16Z","updated_at":"2015-08-10T09:28:21Z","closed_at":null,"body":"> This is the confirmation of purchase sent once the course is purchased via WooCommerce. The bit I want to edit I assume is created by Sensei because it references 'course. Please see the screenshot below: http://cld.wthms.co/12PCx/VU6DC0TR\r\n\r\nhttps://github.com/woothemes/sensei/blob/8ea89c9e7f252d459115029be1d4bc8d4956ce42/classes/class-woothemes-sensei.php#L1112\r\n\r\n_Link to the ticket: https://woothemes.zendesk.com/agent/tickets/316978_"},"comment":{"url":"https://api.github.com/repos/woothemes/sensei/issues/comments/129378508","html_url":"https://github.com/woothemes/sensei/issues/1021#issuecomment-129378508","issue_url":"https://api.github.com/repos/woothemes/sensei/issues/1021","id":129378508,"user":{"login":"mahangu","id":10125810,"avatar_url":"https://avatars.githubusercontent.com/u/10125810?v=3","gravatar_id":"","url":"https://api.github.com/users/mahangu","html_url":"https://github.com/mahangu","followers_url":"https://api.github.com/users/mahangu/followers","following_url":"https://api.github.com/users/mahangu/following{/other_user}","gists_url":"https://api.github.com/users/mahangu/gists{/gist_id}","starred_url":"https://api.github.com/users/mahangu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahangu/subscriptions","organizations_url":"https://api.github.com/users/mahangu/orgs","repos_url":"https://api.github.com/users/mahangu/repos","events_url":"https://api.github.com/users/mahangu/events{/privacy}","received_events_url":"https://api.github.com/users/mahangu/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T09:28:21Z","updated_at":"2015-08-10T09:28:21Z","body":"As a temporary workaround, this user can use WooCommerce's `woocommerce_email_after_order_table` action to hook in their own function, and replace Sensei's default `sensei_woocommerce_email_course_details` function for this action by removing it via remove_action().\r\n\r\nExample - https://cloudup.com/ciuBNhiwjrs\r\n\r\nIf they don't want to write a mini plugin from scratch to do this, they can consider using something like Functionality to add this function for now -\r\n\r\nhttps://wordpress.org/plugins/functionality/ (thanks, @bryceadams! :)\r\n\r\nThis is one way they can make this change without messing with Sensei core / having to deal with future update headaches. Then, when we do make these strings user editable in a future version of Sensei, they can just disable their custom plugin/code and switch over seamlessly. "}}