Docs

Log in to read the version of docs relevant to your site, or use the dropdown versions

How to integrate a shortcode in a button in WordPress?

This article covers

What are the 'Deprecated shortcodes that are supported by Chargebee?

Summary

You can integrate shortcode as a button in your WordPress site in two ways: Use Checkout Subscription Shortcode in your WordPress site (or) Directly integrate Chargebee plans on your website using drop-in script method.

Info: Chargebee's drop-in script loads the checkout on clicking a button. This allows the Chargebee plans to pop up when a customer clicks the subscribe button on your website and proceeds to checkout on your web page itself.

Shortcode to use:

Account Portal : [cb_account_portal class="btn"]Account[/cb_account_portal]

Product Subscribe : [cb_product_subscribe_hosted class="btn" product_id="cbdemo_grow"]Subscribe[/cb_product_subscribe_hosted]

Deprecated Shortcodes:

These shortcodes can be used in your posts/pages to setup restrictions or guide users to sign up:

  1. cb_login_form

  2. cb_registration_form

  3. cb_account_link

  4. cb_update_payment_method_form

  5. cb_product_subscribe

Here's more about our integration with WordPress.

Was this article helpful?