{"id":3754,"date":"2015-06-19T13:19:22","date_gmt":"2015-06-19T03:19:22","guid":{"rendered":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/?p=3754"},"modified":"2015-06-19T13:21:23","modified_gmt":"2015-06-19T03:21:23","slug":"example-code-for-custom-autoresponder-integration-with-wp-estore","status":"publish","type":"post","link":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/example-code-for-custom-autoresponder-integration-with-wp-estore-3754","title":{"rendered":"Example Code for Custom Autoresponder Integration with WP eStore"},"content":{"rendered":"<p><span style=\"color: #ff0000;\"><em><strong>This documentation is only for developers. If you are not a developer then you have no need to read this.<\/strong><\/em><\/span><\/p>\n<p>First read <a href=\"https:\/\/support.tipsandtricks-hq.com\/forums\/topic\/can-my-autoresponderemail-marketing-manager-be-integrated-with-your-plugins\" target=\"_blank\">this post<\/a> to understand some basics.<\/p>\n<p>The following is an example code that shows you how use the item specific signup hook (this hook\u00c2\u00a0is called for each item that the customer purchases):<\/p>\n<pre>add_action('eStore_item_specific_autoresponder_signup', 'my_estore_custom_signup');\r\nfunction my_estore_custom_signup($signup_data)\r\n{\r\n    eStore_payment_debug('Received request for item specific autoresponder signup action.', true);\r\n    $firstname = $signup_data['firstname'];\r\n    $lastname = $signup_data['lastname'];\r\n    $email = $signup_data['email'];\r\n    $list_name = $signup_data['list_name'];\r\n    \/\/TODO - write your autoresponder signup code here.\r\n}\r\n<\/pre>\n<p>The value you specify in the &#8220;List Name&#8221; field (under the autoresponder settings section of the product) will be passed in the above function using the &#8220;list_name&#8221; parameter.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This documentation is only for developers. If you are not a developer then you have no need to read this. First read this post to understand some basics. The following is an example code that shows you how use the item specific signup hook (this hook\u00c2\u00a0is called for each item that the customer purchases): add_action(&#8216;eStore_item_specific_autoresponder_signup&#8217;, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[13],"tags":[205,196,24],"class_list":{"0":"post-3754","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-additional-resources","7":"tag-autoresponder","8":"tag-code-example","9":"tag-tweaks","10":"entry"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/3754"}],"collection":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/comments?post=3754"}],"version-history":[{"count":0,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/posts\/3754\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/media?parent=3754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/categories?post=3754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tipsandtricks-hq.com\/ecommerce\/wp-json\/wp\/v2\/tags?post=3754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}