{"id":403,"date":"2023-10-21T05:17:31","date_gmt":"2023-10-21T05:17:31","guid":{"rendered":"https:\/\/wpshortcode.org\/?p=403"},"modified":"2023-10-21T05:17:32","modified_gmt":"2023-10-21T05:17:32","slug":"mailin","status":"publish","type":"post","link":"https:\/\/wpshortcode.org\/mailin\/","title":{"rendered":"Mailin Shortcode"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Below, you&#8217;ll find a detailed guide on how to add the <strong>Mailin Shortcode<\/strong> to your WordPress website, including its <strong>parameters<\/strong>, <strong>examples<\/strong>, and <strong>PHP function code<\/strong>. Additionally, we&#8217;ll assist you with common issues that might cause the Mailin Plugin shortcode not to show or not to work correctly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before starting, here is an overview of the Mailin Plugin and the shortcodes it provides:<\/p>\n\n\n<p>    <div class=\"plugin-info-box\">\n        <div class=\"top-main\">\n            <!-- SVG Image -->\n            <div class=\"plugin-image\">\n                <img decoding=\"async\" src=\"https:\/\/ps.w.org\/mailin\/assets\/icon-128x128.png?rev=2128831\" alt=\"Plugin Icon\" \/>\n            <\/div>\n            \n            <div class=\"plugin-descriptive-part\">\n                <!-- Plugin Name with Link -->\n\n                    <a class=\"plugin-title\" href=\"https:\/\/wordpress.org\/plugins\/mailin\" target=\"_blank\" rel=\"noopener\">\n                        Newsletter, SMTP, Email marketing and Subscribe forms by Brevo (formely Sendinblue)                    <\/a>\n\n\n                <!-- Plugin Description -->\n                <p class=\"plugin-description\">\n                    &quot;Newsletter, SMTP, Email marketing and Subscribe forms by Brevo (formerly Sendinblue) is a WordPress plugin that enhances your email marketing capabilities. It provides seamless SMTP integration and customizable subscription forms.&quot;                <\/p>\n            <\/div>\n        <\/div>\n\n        <!-- Rating and Additional Info -->\n        <div class=\"plugin-meta\">\n            <span class=\"plugin-rating\">\n                <span class='stars'>\u2605\u2605\u2605\u2605\u2729<\/span> (232)\n            <\/span>\n            <span class=\"plugin-active-installs\">\n                <strong>Active Installs<\/strong>: 100000+\n            <\/span>\n            <span class=\"plugin-tested\">\n                <strong>Tested with<\/strong>: 6.3.2            <\/span>\n            <span class=\"plugin-php-version\">\n                <strong>PHP Version<\/strong>: 5.6            <\/span>\n        <\/div>\n\n        <!-- List of Included Shortcodes -->\n        <div class=\"plugin-shortcodes\">\n            <strong>Included Shortcodes:<\/strong>\n            <ul>\n                <li>[sibwp_form]<\/li>            <\/ul>\n        <\/div>\n    <\/div>\n    <\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Mailin [sibwp_form] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Sendinblue WordPress Plugin shortcode is a powerful tool that generates a specific form based on the ID provided. \n\n\n\nIt retrieves the form ID from the shortcode attributes and generates the form in the desired language. If no language is defined, it defaults to the site&#8217;s language. The form is then outputted wherever the shortcode is placed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[sibwp_form]<\/code><\/p>\n\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Parameters<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here is a list of all possible sibwp_form shortcode parameters and attributes:<\/p>\n\n\n<ul>\n<li><code>id<\/code> &#8211; Unique identifier for the specific contact form.<\/li>\n<\/ul>\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Examples and Usage<\/h3>\n\n\n<p><strong>Basic example<\/strong> &#8211; A shortcode that will render a form with the ID &#8216;oldForm&#8217;.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[sibwp_form id='oldForm' \/]<\/code><\/pre>\n\n\n<p><strong>Advanced examples<\/strong><\/p>\n<p>Example of a shortcode that will render a form with the ID &#8216;contactUs&#8217;. If &#8216;contactUs&#8217; form is not found, it will return the &#8216;oldForm&#8217;.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[sibwp_form id='contactUs' \/]<\/code><\/pre>\n\n\n<p>Example of a shortcode that will render a form with the ID &#8216;subscribe&#8217;. If &#8216;subscribe&#8217; form is not found, it will return the &#8216;oldForm&#8217;. It also uses a language code &#8216;fr&#8217; (French) to display the form in French.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[sibwp_form id='subscribe' lang='fr' \/]<\/code><\/pre>\n\n\n<p>These examples illustrate how you can use different parameters with the &#8216;sibwp_form&#8217; shortcode to display different forms and in different languages on your WordPress website.<\/p>\n\n\n<div style=\"height:5px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">PHP Function Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[sibwp_form]<\/code> shortcode, check below the related PHP functions code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode line<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">add_shortcode( 'sibwp_form', array( &amp;$this, 'sibwp_form_shortcode' ) );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode PHP function<\/strong>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; light: false; title: ; toolbar: true; notranslate\" title=\"\">\nfunction sibwp_form_shortcode( $atts ) {\n\t\t\t$pull_atts = shortcode_atts(\n\t\t\t\tarray(\n\t\t\t\t\t&#039;id&#039; =&gt; &#039;oldForm&#039;, \/\/ We will return &#039;oldForm&#039; for shortcode of old form.\n\t\t\t\t), $atts\n\t\t\t);\n\t\t\t$frmID = $pull_atts&#91;&#039;id&#039;];\n\t\t\t$lang = defined( &#039;ICL_LANGUAGE_CODE&#039; ) ? ICL_LANGUAGE_CODE : &#039;&#039;;\n\n\t\t\tob_start();\n\t\t\t$this-&gt;generate_form_box( $frmID, $lang );\n\n\t\t\t$output_string = ob_get_contents();\n\t\t\tob_end_clean();\n\t\t\treturn $output_string;\n\t\t}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><strong>Code file location<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">mailin\/mailin\/sendinblue.php<\/code><\/pre>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you&#8217;ve learned how to embed the <strong>Mailin Plugin shortcode<\/strong>, understood the parameters, and seen code examples, it&#8217;s easy to use and debug any issue that might cause it to &#8216;not work&#8217;. If you still have difficulties with it, don&#8217;t hesitate to leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below, you&#8217;ll find a detailed guide on how to add the Mailin Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we&#8217;ll assist you with common issues that might cause the Mailin Plugin shortcode not to show or not to work correctly. Before starting, here is an overview of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"name":"Newsletter, SMTP, Email marketing and Subscribe forms by Brevo (formely Sendinblue)","slug":"","version":"3.1.71","author":"<a href=\"https:\/\/www.brevo.com\/?r=wporg\">Brevo<\/a>","icons":"https:\/\/ps.w.org\/mailin\/assets\/icon-128x128.png?rev=2128831","plugin_tags":"{\"brevo\":\"brevo\",\"email-marketing\":\"Email Marketing\",\"forms\":\"forms\",\"newsletter\":\"newsletter\",\"sendinblue\":\"sendinblue\"}","author_profile":"https:\/\/profiles.wordpress.org\/neeraj_slit\/","requires":"4.4","tested":"6.3.2","requires_php":"5.6","rating":86,"num_ratings":232,"active_installs":100000,"downloaded":3855132,"last_updated":"2023-10-03 7:21am GMT","added":"2012-09-06","homepage":"https:\/\/www.brevo.com\/?r=wporg","short_description":"Manage your contact lists, subscription forms and all email and marketing-related topics from your wp panel, within one single plugin","description":"\"Newsletter, SMTP, Email marketing and Subscribe forms by Brevo (formerly Sendinblue) is a WordPress plugin that enhances your email marketing capabilities. It provides seamless SMTP integration and customizable subscription forms.\"","shortcodes":"[\"sibwp_form\"]","footnotes":""},"categories":[1],"tags":[],"class_list":["post-403","post","type-post","status-publish","format-standard","hentry","category-plugins"],"_links":{"self":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/comments?post=403"}],"version-history":[{"count":1,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/403\/revisions"}],"predecessor-version":[{"id":522,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/403\/revisions\/522"}],"wp:attachment":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/media?parent=403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/categories?post=403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/tags?post=403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}