{"id":464,"date":"2017-12-14T22:51:29","date_gmt":"2017-12-14T17:21:29","guid":{"rendered":"https:\/\/holithemes.com\/whatsapp-chat\/?p=464"},"modified":"2017-12-14T22:51:29","modified_gmt":"2017-12-14T17:21:29","slug":"support-how-to-create-your-own-link-with-a-pre-filled-message","status":"publish","type":"post","link":"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/support-how-to-create-your-own-link-with-a-pre-filled-message\/","title":{"rendered":"Support : How to create your own link with a pre-filled message"},"content":{"rendered":"<p>Since Version 1.3, can add <a class=\"line\" href=\"https:\/\/holithemes.com\/whatsapp-chat\/pre-filled-message\/\">pre-filled text<\/a> from plugin settings.<\/p>\n<p>( its a build in feature, so no\u00a0 need to modify code )<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>This is reply to a message\u00a0 &#8211;\u00a0<a href=\"https:\/\/wordpress.org\/support\/topic\/how-to-create-your-own-link-with-a-pre-filled-message\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/wordpress.org\/support\/topic\/how-to-create-your-own-link-with-a-pre-filled-message\/<\/a><\/p>\n<hr \/>\n<p>Just added a temporary solution &#8211;<br \/>\nbased on your message, i can understand you are capable to edit the code.<\/p>\n<p>From Dashboard -&gt; plugins -&gt; Editor &#8211;<br \/>\nSelect &#8216;Click to Chat for WhatsApp&#8217; plugin<\/p>\n<p>edit &#8216;styles.php&#8217; ( located at &#8216;inc&#8217; -&gt; &#8216;commons&#8217; -&gt; &#8216;styles.php&#8217; )<\/p>\n<p>edit line number &#8211; 38, 48<\/p>\n<p><a href=\"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-content\/uploads\/2017\/12\/add_prefilled_message.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-469\" src=\"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-content\/uploads\/2017\/12\/add_prefilled_message.png\" alt=\"\" width=\"1730\" height=\"836\" srcset=\"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-content\/uploads\/2017\/12\/add_prefilled_message.png 1730w, https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-content\/uploads\/2017\/12\/add_prefilled_message-300x145.png 300w, https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-content\/uploads\/2017\/12\/add_prefilled_message-1024x495.png 1024w, https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-content\/uploads\/2017\/12\/add_prefilled_message-768x371.png 768w, https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-content\/uploads\/2017\/12\/add_prefilled_message-1536x742.png 1536w, https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-content\/uploads\/2017\/12\/add_prefilled_message-1568x758.png 1568w\" sizes=\"(max-width: 1730px) 100vw, 1730px\" \/><\/a><\/p>\n<p>edit line &#8211; 38<\/p>\n<pre>$redirect_a = \"https:\/\/api.whatsapp.com\/send?phone=$num\";<\/pre>\n<p>to<\/p>\n<pre>$redirect_a = \"https:\/\/api.whatsapp.com\/send?phone=$num&amp;text=ADD-YOUR-MESSAGE-HERE\";<\/pre>\n<p>&nbsp;<\/p>\n<p>and line &#8211; 48<\/p>\n<pre>$redirect_a = \"https:\/\/web.whatsapp.com\/send?phone=$num\";<\/pre>\n<p>to<\/p>\n<pre>$redirect_a = \"https:\/\/web.whatsapp.com\/send?phone=$num&amp;text=ADD-YOUR-MESSAGE-HERE\";<\/pre>\n<p>please note:<br \/>\nwhen you update the plugin, all this settings may lost,<br \/>\nplease use this as a temporary solution.<\/p>\n<p>we like to add\u00a0 &#8216;pre-filled message&#8217; feature in next version.<\/p>\n<p>Thank you<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since Version 1.3, can add pre-filled text from plugin settings. ( its a build in feature, so no\u00a0 need to modify code ) &nbsp; This is reply to a message\u00a0 &#8211;\u00a0https:\/\/wordpress.org\/support\/topic\/how-to-create-your-own-link-with-a-pre-filled-message\/ Just added a temporary solution &#8211; based on your message, i can understand you are capable to edit the code. From Dashboard -&gt; plugins [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"no-ads-template.php","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[],"class_list":["post-464","post","type-post","status-publish","format-standard","hentry","category-wp-support"],"_links":{"self":[{"href":"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-json\/wp\/v2\/posts\/464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-json\/wp\/v2\/comments?post=464"}],"version-history":[{"count":0,"href":"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-json\/wp\/v2\/posts\/464\/revisions"}],"wp:attachment":[{"href":"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-json\/wp\/v2\/media?parent=464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-json\/wp\/v2\/categories?post=464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/holithemes.com\/plugins\/whatsapp-chat\/wp-json\/wp\/v2\/tags?post=464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}