{"id":665,"date":"2024-07-19T12:27:12","date_gmt":"2024-07-19T12:27:12","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/?p=665"},"modified":"2024-07-19T12:27:12","modified_gmt":"2024-07-19T12:27:12","slug":"actions","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/","title":{"rendered":"Actions"},"content":{"rendered":"<div id=\"yith-hooks_container\" class=\"actions\"><h3>includes\/class-yith-wc-abandoned-cart-email.php<\/h3>\n\t<div id=\"yith-hd-copy-to-clipboard-wrapper\">\n\t\t<div class=\"yith-hd-copy-to-clipboard_field-wrap\">\n\t\t\t<input type=\"text\" id=\"yith-hd_code\" class=\"yith-hd-copy-to-clipboard__field\" value=\" send_rac_mail\" readonly=\"\">\n\t\t\t<div class=\"yith-hd-copy-to-clipboard__tip\">Copied!<\/div>\n\t\t<\/div>\n\t\t<div class=\"yith-hd-copy-to-clipboard__copy\">\n\t\t\t<i class=\"yith-hd-copy-to-clipboard__copy__icon yith-icon yith-icon-copy\"><\/i>\n\t\t\t<span class=\"yith-hd-copy-to-clipboard__copy__text\">Copy<\/span>\n\t\t<\/div>\n\t<\/div>\n<p>Send test email<\/p>\n<pre>\n<b>Params<\/b>\n<code> array $args list of metas<\/code>\n<\/pre>\n<hr \/>\n\t<div id=\"yith-hd-copy-to-clipboard-wrapper\">\n\t\t<div class=\"yith-hd-copy-to-clipboard_field-wrap\">\n\t\t\t<input type=\"text\" id=\"yith-hd_code\" class=\"yith-hd-copy-to-clipboard__field\" value=\" send_rac_mail\" readonly=\"\">\n\t\t\t<div class=\"yith-hd-copy-to-clipboard__tip\">Copied!<\/div>\n\t\t<\/div>\n\t\t<div class=\"yith-hd-copy-to-clipboard__copy\">\n\t\t\t<i class=\"yith-hd-copy-to-clipboard__copy__icon yith-icon yith-icon-copy\"><\/i>\n\t\t\t<span class=\"yith-hd-copy-to-clipboard__copy__text\">Copy<\/span>\n\t\t<\/div>\n\t<\/div>\n<p>Send email<\/p>\n<pre>\n<b>Params<\/b>\n<code> array $args list of metas<\/code>\n<\/pre>\n<hr \/>\n<h3>includes\/class-yith-wc-abandoned-cart.php<\/h3>\n\t<div id=\"yith-hd-copy-to-clipboard-wrapper\">\n\t\t<div class=\"yith-hd-copy-to-clipboard_field-wrap\">\n\t\t\t<input type=\"text\" id=\"yith-hd_code\" class=\"yith-hd-copy-to-clipboard__field\" value=\" send_recovered_cart_mail\" readonly=\"\">\n\t\t\t<div class=\"yith-hd-copy-to-clipboard__tip\">Copied!<\/div>\n\t\t<\/div>\n\t\t<div class=\"yith-hd-copy-to-clipboard__copy\">\n\t\t\t<i class=\"yith-hd-copy-to-clipboard__copy__icon yith-icon yith-icon-copy\"><\/i>\n\t\t\t<span class=\"yith-hd-copy-to-clipboard__copy__text\">Copy<\/span>\n\t\t<\/div>\n\t<\/div>\n<p>Send email to admin<\/p>\n<pre>\n<b>Params<\/b>\n<code> array $args<\/code>\n<\/pre>\n<hr \/>\n\t<div id=\"yith-hd-copy-to-clipboard-wrapper\">\n\t\t<div class=\"yith-hd-copy-to-clipboard_field-wrap\">\n\t\t\t<input type=\"text\" id=\"yith-hd_code\" class=\"yith-hd-copy-to-clipboard__field\" value=\" send_recovered_cart_mail\" readonly=\"\">\n\t\t\t<div class=\"yith-hd-copy-to-clipboard__tip\">Copied!<\/div>\n\t\t<\/div>\n\t\t<div class=\"yith-hd-copy-to-clipboard__copy\">\n\t\t\t<i class=\"yith-hd-copy-to-clipboard__copy__icon yith-icon yith-icon-copy\"><\/i>\n\t\t\t<span class=\"yith-hd-copy-to-clipboard__copy__text\">Copy<\/span>\n\t\t<\/div>\n\t<\/div>\n<p>Send email to admin<\/p>\n<pre>\n<b>Params<\/b>\n<code> array $args<\/code>\n<\/pre>\n<hr \/>\n<h3>init.php<\/h3>\n\t<div id=\"yith-hd-copy-to-clipboard-wrapper\">\n\t\t<div class=\"yith-hd-copy-to-clipboard_field-wrap\">\n\t\t\t<input type=\"text\" id=\"yith-hd_code\" class=\"yith-hd-copy-to-clipboard__field\" value=\" yith_ywrac_init\" readonly=\"\">\n\t\t\t<div class=\"yith-hd-copy-to-clipboard__tip\">Copied!<\/div>\n\t\t<\/div>\n\t\t<div class=\"yith-hd-copy-to-clipboard__copy\">\n\t\t\t<i class=\"yith-hd-copy-to-clipboard__copy__icon yith-icon yith-icon-copy\"><\/i>\n\t\t\t<span class=\"yith-hd-copy-to-clipboard__copy__text\">Copy<\/span>\n\t\t<\/div>\n\t<\/div>\n<p>Plugin init<\/p>\n<hr \/>\n<h3>templates\/email\/email-recover-cart.php<\/h3>\n\t<div id=\"yith-hd-copy-to-clipboard-wrapper\">\n\t\t<div class=\"yith-hd-copy-to-clipboard_field-wrap\">\n\t\t\t<input type=\"text\" id=\"yith-hd_code\" class=\"yith-hd-copy-to-clipboard__field\" value=\" woocommerce_email_header\" readonly=\"\">\n\t\t\t<div class=\"yith-hd-copy-to-clipboard__tip\">Copied!<\/div>\n\t\t<\/div>\n\t\t<div class=\"yith-hd-copy-to-clipboard__copy\">\n\t\t\t<i class=\"yith-hd-copy-to-clipboard__copy__icon yith-icon yith-icon-copy\"><\/i>\n\t\t\t<span class=\"yith-hd-copy-to-clipboard__copy__text\">Copy<\/span>\n\t\t<\/div>\n\t<\/div>\n<p>WooCommerce email header<\/p>\n<pre>\n<b>Params<\/b>\n<code> string $email_heading<\/code>\n<code> WC_Email $email<\/code>\n<\/pre>\n<hr \/>\n\t<div id=\"yith-hd-copy-to-clipboard-wrapper\">\n\t\t<div class=\"yith-hd-copy-to-clipboard_field-wrap\">\n\t\t\t<input type=\"text\" id=\"yith-hd_code\" class=\"yith-hd-copy-to-clipboard__field\" value=\" woocommerce_email_before_order_table\" readonly=\"\">\n\t\t\t<div class=\"yith-hd-copy-to-clipboard__tip\">Copied!<\/div>\n\t\t<\/div>\n\t\t<div class=\"yith-hd-copy-to-clipboard__copy\">\n\t\t\t<i class=\"yith-hd-copy-to-clipboard__copy__icon yith-icon yith-icon-copy\"><\/i>\n\t\t\t<span class=\"yith-hd-copy-to-clipboard__copy__text\">Copy<\/span>\n\t\t<\/div>\n\t<\/div>\n<p>Hooks before the order table<\/p>\n<pre>\n<b>Params<\/b>\n<code> WC_Order $order<\/code>\n<code> bool $sent_to_admin<\/code>\n<code> bool $plain_text<\/code>\n<code> WC_Email $email<\/code>\n<\/pre>\n<hr \/>\n<h3>templates\/email\/email-template.php<\/h3>\n\t<div id=\"yith-hd-copy-to-clipboard-wrapper\">\n\t\t<div class=\"yith-hd-copy-to-clipboard_field-wrap\">\n\t\t\t<input type=\"text\" id=\"yith-hd_code\" class=\"yith-hd-copy-to-clipboard__field\" value=\" woocommerce_email_header\" readonly=\"\">\n\t\t\t<div class=\"yith-hd-copy-to-clipboard__tip\">Copied!<\/div>\n\t\t<\/div>\n\t\t<div class=\"yith-hd-copy-to-clipboard__copy\">\n\t\t\t<i class=\"yith-hd-copy-to-clipboard__copy__icon yith-icon yith-icon-copy\"><\/i>\n\t\t\t<span class=\"yith-hd-copy-to-clipboard__copy__text\">Copy<\/span>\n\t\t<\/div>\n\t<\/div>\n<p>WooCommerce email header<\/p>\n<pre>\n<b>Params<\/b>\n<code> string $email_heading<\/code>\n<code> WC_Email $email<\/code>\n<\/pre>\n<hr \/>\n\t<div id=\"yith-hd-copy-to-clipboard-wrapper\">\n\t\t<div class=\"yith-hd-copy-to-clipboard_field-wrap\">\n\t\t\t<input type=\"text\" id=\"yith-hd_code\" class=\"yith-hd-copy-to-clipboard__field\" value=\" woocommerce_email_footer\" readonly=\"\">\n\t\t\t<div class=\"yith-hd-copy-to-clipboard__tip\">Copied!<\/div>\n\t\t<\/div>\n\t\t<div class=\"yith-hd-copy-to-clipboard__copy\">\n\t\t\t<i class=\"yith-hd-copy-to-clipboard__copy__icon yith-icon yith-icon-copy\"><\/i>\n\t\t\t<span class=\"yith-hd-copy-to-clipboard__copy__text\">Copy<\/span>\n\t\t<\/div>\n\t<\/div>\n<p>WooCommerce email footer<\/p>\n<pre>\n<b>Params<\/b>\n<code> WC_Email $email<\/code>\n<\/pre>\n<hr \/>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":20,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-665","post","type-post","status-publish","format-standard","hentry","category-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YITH Recover Abandoned Cart: Actions<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YITH Recover Abandoned Cart: Actions\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Recover Abandoned Cart\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-19T12:27:12+00:00\" \/>\n<meta name=\"author\" content=\"armando\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"armando\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/\",\"name\":\"YITH Recover Abandoned Cart: Actions\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/#website\"},\"datePublished\":\"2024-07-19T12:27:12+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/#\/schema\/person\/c617ea3a2e5ee161586c2bc0d367ffe3\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Actions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/\",\"name\":\"YITH WooCommerce Recover Abandoned Cart\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/#\/schema\/person\/c617ea3a2e5ee161586c2bc0d367ffe3\",\"name\":\"armando\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6020f46edbc3814f7508e28543747a01?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6020f46edbc3814f7508e28543747a01?s=96&d=mm&r=g\",\"caption\":\"armando\"},\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/author\/armando\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YITH Recover Abandoned Cart: Actions","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/","og_locale":"en_US","og_type":"article","og_title":"YITH Recover Abandoned Cart: Actions","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/","og_site_name":"YITH WooCommerce Recover Abandoned Cart","article_published_time":"2024-07-19T12:27:12+00:00","author":"armando","twitter_card":"summary_large_image","twitter_misc":{"Written by":"armando","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/","name":"YITH Recover Abandoned Cart: Actions","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/#website"},"datePublished":"2024-07-19T12:27:12+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/#\/schema\/person\/c617ea3a2e5ee161586c2bc0d367ffe3"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/development\/actions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/"},{"@type":"ListItem","position":2,"name":"Actions"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/","name":"YITH WooCommerce Recover Abandoned Cart","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/#\/schema\/person\/c617ea3a2e5ee161586c2bc0d367ffe3","name":"armando","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6020f46edbc3814f7508e28543747a01?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6020f46edbc3814f7508e28543747a01?s=96&d=mm&r=g","caption":"armando"},"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/author\/armando\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/wp-json\/wp\/v2\/posts\/665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/wp-json\/wp\/v2\/users\/20"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/wp-json\/wp\/v2\/comments?post=665"}],"version-history":[{"count":1,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/wp-json\/wp\/v2\/posts\/665\/revisions"}],"predecessor-version":[{"id":666,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/wp-json\/wp\/v2\/posts\/665\/revisions\/666"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/wp-json\/wp\/v2\/media?parent=665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/wp-json\/wp\/v2\/categories?post=665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-recover-abandoned-cart\/wp-json\/wp\/v2\/tags?post=665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}