Leadin Hubspot Shortcode

Below, you’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’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 Leadin Plugin and the shortcodes it provides:

Plugin Icon
HubSpot – CRM, Email Marketing, Live Chat, Forms & Analytics

"HubSpot – 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."

★★★★✩ (200) Active Installs: 300000+ Tested with: 6.2.3 PHP Version: 7.2
Included Shortcodes:
  • [hubspot]

Leadin [hubspot] Shortcode

‘hubspot’ is a shortcode that connects to the Hubspot plugin. It triggers the ‘leadin_add_hubspot_shortcode’ function when used. The function ‘leadin_add_hubspot_shortcode’ takes attributes and renders the shortcode using the ShortcodeRenderUtils class.

Shortcode: [hubspot]

Examples and Usage

Basic example – A simple usage of the Hubspot shortcode to render a shortcode with given attributes.

[hubspot attr1="value1" /]

PHP Function Code

In case you have difficulties debugging what causing issues with [hubspot] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'hubspot', array( $this, 'leadin_add_hubspot_shortcode' ) );

Shortcode PHP function:

function leadin_add_hubspot_shortcode( $attributes ) {
		return ShortcodeRenderUtils::render_shortcode( $attributes );
	}

Code file location:

leadin/leadin/public/class-pagehooks.php

Conclusion

Now that you’ve learned how to embed the Leadin Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *