{"id":312,"date":"2023-10-20T15:12:37","date_gmt":"2023-10-20T15:12:37","guid":{"rendered":"https:\/\/wpshortcode.org\/?p=312"},"modified":"2023-10-20T15:12:58","modified_gmt":"2023-10-20T15:12:58","slug":"leadin","status":"publish","type":"post","link":"https:\/\/wpshortcode.org\/leadin\/","title":{"rendered":"Leadin Hubspot Shortcode"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Below, you&#8217;ll find a detailed guide on how to add the <strong>Leadin 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 Leadin 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 Leadin 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\/leadin\/assets\/icon-128x128.png?rev=2965762\" 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\/leadin\" target=\"_blank\" rel=\"noopener\">\n                        HubSpot &#8211; CRM, Email Marketing, Live Chat, Forms &amp; Analytics                    <\/a>\n\n\n                <!-- Plugin Description -->\n                <p class=\"plugin-description\">\n                    &quot;HubSpot \u2013 CRM, Email Marketing, Live Chat, Forms &amp; Analytics is a comprehensive WordPress plugin. It streamlines CRM tasks, facilitates email marketing, enables live chat, helps to create forms, and provides detailed analytics.&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> (200)\n            <\/span>\n            <span class=\"plugin-active-installs\">\n                <strong>Active Installs<\/strong>: 300000+\n            <\/span>\n            <span class=\"plugin-tested\">\n                <strong>Tested with<\/strong>: 6.2.3            <\/span>\n            <span class=\"plugin-php-version\">\n                <strong>PHP Version<\/strong>: 7.2            <\/span>\n        <\/div>\n\n        <!-- List of Included Shortcodes -->\n        <div class=\"plugin-shortcodes\">\n            <strong>Included Shortcodes:<\/strong>\n            <ul>\n                <li>[hubspot]<\/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\">Leadin [hubspot] Shortcode<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">&#8216;hubspot&#8217; is a shortcode that connects to the Hubspot plugin. It triggers the &#8216;leadin_add_hubspot_shortcode&#8217; function when used. \n\n\n\nThe function &#8216;leadin_add_hubspot_shortcode&#8217; takes attributes and renders the shortcode using the ShortcodeRenderUtils class.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Shortcode<\/strong>: <code>[hubspot]<\/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\">Examples and Usage<\/h3>\n\n\n<p><strong>Basic example<\/strong> &#8211; A simple usage of the Hubspot shortcode to render a shortcode with given attributes.<\/p>\n\n\n<pre class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">[hubspot attr1=\"value1\" \/]<\/code><\/pre>\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\">PHP Function Code<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In case you have difficulties debugging what causing issues with <code>[hubspot]<\/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( 'hubspot', array( $this, 'leadin_add_hubspot_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 leadin_add_hubspot_shortcode( $attributes ) {\n\t\treturn ShortcodeRenderUtils::render_shortcode( $attributes );\n\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\">leadin\/leadin\/public\/class-pagehooks.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>Leadin 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 Leadin 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 Leadin 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":"HubSpot &#8211; CRM, Email Marketing, Live Chat, Forms &amp; Analytics","slug":"","version":"10.2.5","author":"<a href=\"http:\/\/hubspot.com\/products\/wordpress\">HubSpot<\/a>","icons":"https:\/\/ps.w.org\/leadin\/assets\/icon-128x128.png?rev=2965762","plugin_tags":"{\"analytics\":\"analytics\",\"crm\":\"crm\",\"forms\":\"forms\",\"live-chat\":\"live chat\",\"marketing\":\"marketing\"}","author_profile":"https:\/\/profiles.wordpress.org\/hubspotdev\/","requires":"5.4","tested":"6.2.3","requires_php":"7.2","rating":88,"num_ratings":200,"active_installs":300000,"downloaded":12169164,"last_updated":"2023-09-12 9:37am GMT","added":"2014-03-12","homepage":"http:\/\/www.hubspot.com\/integrations\/wordpress","short_description":"The CRM, Sales, and Marketing WordPress plugin to grow your business better.\r\n\r\nCapture, organize, and engage web visitors with free live chat, forms, C &hellip;","description":"\"HubSpot \u2013 CRM, Email Marketing, Live Chat, Forms & Analytics is a comprehensive WordPress plugin. It streamlines CRM tasks, facilitates email marketing, enables live chat, helps to create forms, and provides detailed analytics.\"","shortcodes":"[\"hubspot\"]","footnotes":""},"categories":[1],"tags":[],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","category-plugins"],"_links":{"self":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/312","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=312"}],"version-history":[{"count":2,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":315,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/posts\/312\/revisions\/315"}],"wp:attachment":[{"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/media?parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/categories?post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpshortcode.org\/wp-json\/wp\/v2\/tags?post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}