[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f70eHw3dG9WO84RIbz5qmn5Yfw6aYq-LnJYfXBth9pTI":3},{"slug":4,"display_name":5,"profile_url":6,"plugin_count":7,"total_installs":8,"avg_security_score":9,"avg_patch_time_days":10,"trust_score":11,"computed_at":12,"plugins":13},"souptik","Souptik Datta","https:\u002F\u002Fprofiles.wordpress.org\u002Fsouptik\u002F",1,0,92,30,88,"2026-05-20T09:01:57.489Z",[14],{"slug":15,"name":16,"version":17,"author":5,"author_profile":6,"description":18,"short_description":19,"active_installs":8,"downloaded":20,"rating":8,"num_ratings":8,"last_updated":21,"tested_up_to":22,"requires_at_least":23,"requires_php":24,"tags":25,"homepage":30,"download_link":31,"security_score":9,"vuln_count":8,"unpatched_count":8,"last_vuln_date":32,"fetched_at":33},"all-path-messaging","All Path Messaging","1.0.0","\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSouptik2001\u002Fall-path-messaging\" rel=\"nofollow ugc\">Check out the Github Repository ♥\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Limitless Communication:\u003C\u002Fstrong> All-in-one, super scalable, messaging Solution for WordPress.\u003C\u002Fp>\n\u003Cp>Ok hold on! ✋. So, many words in one line.\u003Cbr \u002F>\nLet’s understand each one-by-one.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>All-in-one:\u003C\u002Fstrong> What do you want? – Email, SMS, push-notification? Get all-in-one.\n\u003Cul>\n\u003Cli>But I don’t want to use \u003Ccode>xyz\u003C\u002Fcode> provider for SMS, I want to use \u003Ccode>pqr\u003C\u002Fcode>, can I have that? Yes it provides you with lot of pre implemented providers for all email, sms and push-notification.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Super Scalable:\u003C\u002Fstrong> But I want to use an email provider named \u003Ccode>yxr\u003C\u002Fcode> you haven’t heard the name of. Now what? 🧐\n\u003Cul>\n\u003Cli>No worries! Are you a developer? If yes, just write your own plugin and implement your own adapter and see it nicely hooked-up with “WordPress messaging”. Please refer to \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSouptik2001\u002Fwp-messaging\u002Fwiki\u002FCreate-your-own-Adapter-%F0%9F%9B%A0%EF%B8%8F\" rel=\"nofollow ugc\">this\u003C\u002Fa> section for implementing adapters.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>And that’s how it provides \u003Cstrong>Limitless communication\u003C\u002Fstrong>! 🚀\u003C\u002Fp>\n\u003Cp>\u003Cspan class=\"embed-youtube\" style=\"text-align:center; display: block;\">\u003Ciframe loading=\"lazy\" class=\"youtube-player\" width=\"750\" height=\"422\" src=\"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002F80hWdK8kREM?version=3&rel=1&showsearch=0&showinfo=1&iv_load_policy=1&fs=1&hl=en-US&autohide=2&wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\">\u003C\u002Fiframe>\u003C\u002Fspan>\u003C\u002Fp>\n\u003Ch3>Quick Links\u003C\u002Fh3>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSouptik2001\u002Fwp-messaging\u002Fwiki\u002FSetup-%E2%9A%99%EF%B8%8F\" rel=\"nofollow ugc\">Setup ⚙️\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSouptik2001\u002Fwp-messaging\u002Fissues\" rel=\"nofollow ugc\">Issues\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSouptik2001\u002Fwp-messaging\u002Fwiki\u002FServices-and-functions-%F0%9F%A7%A9\" rel=\"nofollow ugc\">Services and functions 🧩\u003C\u002Fa> | \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FSouptik2001\u002Fwp-messaging\u002Fwiki\u002FCreate-your-own-Adapter-%F0%9F%9B%A0%EF%B8%8F\" rel=\"nofollow ugc\">Create your own Adapter 🛠️\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch3>Coming soon ⏳\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>Push notifications\u003C\u002Fli>\n\u003Cli>Email Testing page\u003C\u002Fli>\n\u003Cli>SMS Testing page\u003C\u002Fli>\n\u003Cli>Push notifications Testing page\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>Examples\u003C\u002Fh3>\n\u003Ch4>Email 📧📨\u003C\u002Fh4>\n\u003Cp>Send an email through a particular adapter (with headers 😉) –\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\\Souptik\\AllPathMessaging\\Email\\send(\n  [ 'dev2@souptik.dev' ],\n  'Yay its working!',\n  'This is some long mail body.',\n  'Souptik',\n  'dev1@souptik.dev',\n  [\n   'cc' => [\n    [\n     'name'  => 'CC Test',\n     'email' => 'cc@souptik.dev',\n    ],\n   ],\n   'attachments' => [\n    trailingslashit( WP_CONTENT_DIR ) . '\u002Fmu-plugins\u002Ftest-all-path-messaging.php',\n     'SameFileDifferentName.php' => trailingslashit( WP_CONTENT_DIR ) . '\u002Fmu-plugins\u002Ftest-all-path-messaging.php',\n   ],\n  ],\n  'mailgun'\n );\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Just remove the last parameter! And now it uses the default selected adapter –\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\\Souptik\\AllPathMessaging\\Email\\send(\n  [ 'dev2@souptik.dev' ],\n  'Yay its working!',\n  'This is some long mail body.',\n  'Souptik',\n  'dev1@souptik.dev',\n  [\n   'cc' => [\n    [\n     'name'  => 'CC Test',\n     'email' => 'cc@souptik.dev',\n    ],\n   ],\n   'attachments' => [\n    trailingslashit( WP_CONTENT_DIR ) . '\u002Fmu-plugins\u002Ftest-all-path-messaging.php',\n     'SameFileDifferentName.php' => trailingslashit( WP_CONTENT_DIR ) . '\u002Fmu-plugins\u002Ftest-all-path-messaging.php',\n   ],\n  ],\n );\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Checked the override \u003Ccode>wp_mail\u003C\u002Fcode> checkbox? Try a simple \u003Ccode>wp_mail\u003C\u002Fcode>! –\u003C\u002Fp>\n\u003Cpre>\u003Ccode>wp_mail(\n  [ 'dev2@souptik.dev' ],\n  'Yay its working!',\n  'This is some long mail body - from \u003Cstrong>wp_mail\u003C\u002Fstrong>.',\n  [],\n  []\n );\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch4>SMS 📲\u003C\u002Fh4>\n\u003Cp>Send a SMS through a particular adapter –\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\\Souptik\\AllPathMessaging\\SMS\\send( [ '+xxxxxxxxxxxx' ], 'Yay its working!', 'twilio' );\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Just remove the last parameter! And now it uses the default selected adapter –\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\\Souptik\\AllPathMessaging\\SMS\\send( [ '+xxxxxxxxxxxx' ], 'Yay its working!' );\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>Creating your own adapter 🛠️\u003C\u002Fh3>\n\u003Cp>Here comes the cool part fellow developers! 💻\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Tip:\u003C\u002Fstrong> I have provided a dummy adapter for each service at \u003Ccode>inc\u002F\u003Cservice>\u002Fadapters\u002Fdummy\u002F\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>Consider that as the starting point and let’s understand what each file does.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Let’s start with \u003Ccode>namespace.php\u003C\u002Fcode>. It is the entry point of your adapter.\n\u003Cul>\n\u003Cli>In that you will see a simple \u003Ccode>bootstrap\u003C\u002Fcode> function.\u003C\u002Fli>\n\u003Cli>In that function we are hooking into \u003Ccode>EMAIL_SLUG . '_adapters'\u003C\u002Fcode> and registering our adapter.\u003C\u002Fli>\n\u003Cli>We pass the following data –\u003C\u002Fli>\n\u003Cli>\u003Ccode>slug\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>\u003Ccode>name\u003C\u002Fcode>\u003C\u002Fli>\n\u003Cli>\u003Ccode>adapter\u003C\u002Fcode> class object.\u003C\u002Fli>\n\u003Cli>\u003Ccode>options\u003C\u002Fcode> – An array defining the settings required for this adapter, which will be used to automatically display the options on the settings page.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003Cli>Next is \u003Ccode>class-adapter.php\u003C\u002Fcode>, which is the Adapter class, which we initialized in the above file and passed it to \u003Ccode>adapter\u003C\u002Fcode>. It contains three simple functions –\n\u003Cul>\n\u003Cli>\u003Ccode>get_settings_fields\u003C\u002Fcode> – This is the function which returns the array of options, which we used in the above file for \u003Ccode>options\u003C\u002Fcode>. Each option, will have –\u003C\u002Fli>\n\u003Cli>The key as the name of the option.\u003C\u002Fli>\n\u003Cli>And three values –\n\u003Cul>\n\u003Cli>\u003Ccode>label\u003C\u002Fcode> – Label to display in the settings page beside the input.\u003C\u002Fli>\n\u003Cli>\u003Ccode>type\u003C\u002Fcode> – Type of the field.\u003C\u002Fli>\n\u003Cli>\u003Ccode>sanitize_callback\u003C\u002Fcode>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003Cli>\u003Ccode>get_settings\u003C\u002Fcode> – This function returns an associative array, whose keys are the name of the options and the value as the value of the options.\u003C\u002Fli>\n\u003Cli>\u003Ccode>get_adapter\u003C\u002Fcode> – This function will just return the core provider class, which is responsible for processing the message.\u003C\u002Fli>\n\u003Cli>First check if \u003Ccode>Utopia Messaging\u003C\u002Fcode> already provides the provider or not \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Futopia-php\u002Fmessaging?tab=readme-ov-file#adapters\" rel=\"nofollow ugc\">here\u003C\u002Fa>, for example \u003Ccode>Utopia\\Messaging\\Adapter\\Email\\Mailgun\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>If it is present just use it. Easy peasy! ✨\u003C\u002Fli>\n\u003Cli>But if not, let’s code it ourself, because \u003Ccode>Utopia Messaging\u003C\u002Fcode> makes it so easy to create a new adapter!\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003Cli>\u003Ccode>class-dummy.php\u003C\u002Fcode> is for that purpose, assuming you don’t get a provider already present in \u003Ccode>Utopia Messaging\u003C\u002Fcode>.\n\u003Cul>\n\u003Cli>It’s basically a child class of \u003Ccode>EmailAdapter\u003C\u002Fcode> or \u003Ccode>SMSAdapter\u003C\u002Fcode>, which abstract a lot of stuff for us!\u003C\u002Fli>\n\u003Cli>Let me explain two main functions, \u003Ccode>_construct\u003C\u002Fcode> and \u003Ccode>process\u003C\u002Fcode>. \u003Cem>Rest of the functions and properties are self-explanatory!\u003C\u002Fem> 😉\u003C\u002Fli>\n\u003Cli>In the \u003Ccode>_construct\u003C\u002Fcode> function just put the arguments which you want to accept. That’s it! And now they will be available everywhere else as \u003Ccode>$this->param_name\u003C\u002Fcode>!\u003C\u002Fli>\n\u003Cli>The \u003Ccode>process\u003C\u002Fcode> function is the place where you have to write the main logic of calling your providers API to send the message.\n\u003Cul>\n\u003Cli>As said above all the credentials\u002Fdata you accepted through constructor are available as \u003Ccode>$this->param_name\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Build the \u003Ccode>body\u003C\u002Fcode> and the \u003Ccode>headers\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>And then you can use the \u003Ccode>$this->request\u003C\u002Fcode> function as demonstrated in the dummy!\u003C\u002Fli>\n\u003Cli>Create a response using Utopia’s \u003Ccode>Response\u003C\u002Fcode> class.\u003C\u002Fli>\n\u003Cli>Handle the errors, populate the response, return! Done! 🚀\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003C\u002Ful>\n\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>External services\u003C\u002Fh3>\n\u003Ch4>Brevo\u003C\u002Fh4>\n\u003Cp>This plugin connect’s to Brevo’s API to send emails through Brevo. This is the \u003Ca href=\"https:\u002F\u002Fapi.brevo.com\u002Fv3\u002Fsmtp\u002Femail\" rel=\"nofollow ugc\">API\u003C\u002Fa> it sends the request to.\u003Cbr \u002F>\nThe request is send everytime a mail is sent, and Brevo is selected as the default adapter from the plugin settings (or the function to send email through Brevo is directly invoked in the code).\u003Cbr \u002F>\nHere is the \u003Ca href=\"https:\u002F\u002Fwww.brevo.com\u002Flegal\u002Ftermsofuse\u002F\" rel=\"nofollow ugc\">Terms of Use\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fwww.brevo.com\u002Flegal\u002Fprivacypolicy\u002F\" rel=\"nofollow ugc\">Privacy Policy\u003C\u002Fa> of the service.\u003C\u002Fp>\n\u003Ch4>AWS SES\u003C\u002Fh4>\n\u003Cp>This plugin connect’s to AWS SES’s API to send emails through AWS SES.\u003Cbr \u002F>\nThe request is send everytime a mail is sent, and AWS SES is selected as the default adapter from the plugin settings (or the function to send email through AWS SES is directly invoked in the code).\u003Cbr \u002F>\nHere is the \u003Ca href=\"https:\u002F\u002Faws.amazon.com\u002Fservice-terms\u002F\" rel=\"nofollow ugc\">Terms of Use\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fdocs.aws.amazon.com\u002Fses\u002Flatest\u002Fdg\u002Fdata-protection.html\" rel=\"nofollow ugc\">Privacy Policy\u003C\u002Fa> of the service.\u003C\u002Fp>\n\u003Ch4>Mailgun\u003C\u002Fh4>\n\u003Cp>This plugin connect’s to Mailgun’s API to send emails through Mailgun.\u003Cbr \u002F>\nThe request is send everytime a mail is sent, and Mailgun is selected as the default adapter from the plugin settings (or the function to send email through Mailgun is directly invoked in the code).\u003Cbr \u002F>\nHere is the \u003Ca href=\"https:\u002F\u002Fwww.mailgun.com\u002Flegal\u002Fterms\u002F\" rel=\"nofollow ugc\">Terms of Use\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fwww.mailgun.com\u002Flegal\u002Fprivacy-policy\u002F\" rel=\"nofollow ugc\">Privacy Policy\u003C\u002Fa> of the service.\u003C\u002Fp>\n\u003Ch4>Telesign\u003C\u002Fh4>\n\u003Cp>This plugin connect’s to Telesign’s API to send SMS through Telesign.\u003Cbr \u002F>\nThe request is send everytime the function to send SMS is invoked with the Adapter as Telesign or the default adapter is set as Telesign.\u003Cbr \u002F>\nHere is the \u003Ca href=\"\u002F\u002Fwww.telesign.com\u002Ftelesign-terms-of-service\" rel=\"nofollow ugc\">Terms of Use\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fwww.telesign.com\u002Fprivacy-policy\" rel=\"nofollow ugc\">Privacy Policy\u003C\u002Fa> of the service.\u003C\u002Fp>\n\u003Ch4>Twilio\u003C\u002Fh4>\n\u003Cp>This plugin connect’s to Twilio’s API to send SMS through Twilio.\u003Cbr \u002F>\nThe request is send everytime the function to send SMS is invoked with the Adapter as Twilio or the default adapter is set as Twilio.\u003Cbr \u002F>\nHere is the \u003Ca href=\"https:\u002F\u002Fwww.twilio.com\u002Fen-us\u002Flegal\u002Ftos\" rel=\"nofollow ugc\">Terms of Use\u003C\u002Fa> and \u003Ca href=\"https:\u002F\u002Fwww.twilio.com\u002Fen-us\u002Flegal\u002Fprivacy\" rel=\"nofollow ugc\">Privacy Policy\u003C\u002Fa> of the service.\u003C\u002Fp>\n","Limitless Communication: All-in-one, super scalable, messaging Solution for WordPress.",1084,"2024-10-27T08:19:00.000Z","6.6.5","4.4","5.6",[26,27,28,29],"email","messaging","push-notification","sms","","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fall-path-messaging.1.0.0.zip",null,"2026-04-16T10:56:18.058Z"]