Billflow
  • Quick Start
  • Setup
    • First Time Setup
      • Connect & Setup Stripe
      • Invite Team Members
      • Create Your First Billing Page
      • Embed The Billing Page
      • Activate Live Payments
  • Billing Pages
    • Plan Picker
    • Checkout Form
    • Customer Portal
    • Pricing Page
    • Invoice Portal
  • How-to's
    • Setup Pricing
      • Flat-rate Subscriptions
      • Free Trial
      • Unit-based
      • Meter-based
      • Setup Fees
      • One-Time Payment
      • Payment Plans (Subscription Schedules)
      • Complex Pricing
      • Add-ons
    • Connect to SaaS
      • Using Stripe Webhooks
    • Change Style
      • Plan Picker Style Templates
      • Customer Portal Style Templates
      • Pricing Page Style Templates
      • Checkout Form Style Templates
    • Update Pricing
    • Use Coupons
    • Enable Quantity Management
    • Enterprise Sales Flow
    • Cancellations/Payment Failures
      • Set up Cancellation Feedback
      • Configure Dunning Emails
    • Automated emails
    • Internationalization
      • Support multiple currencies
      • Support multiple languages
    • Upgrade to new Billing Pages
    • Record Usage
    • VAT & Taxes
    • Indian Recurring Payments
  • No-code Integrations
    • No-code App Builders
      • Bubble
        • How to connect Stripe webhooks to Bubble
      • Webflow
      • WordPress
        • Add Widgets
        • Advanced Usage
        • Useful Plugins
      • Notion
      • Drupal
    • Rewardful
    • ChurnKey
  • Developer Docs
    • Embed Configurations
      • Plan Picker Configs
      • Checkout Form Configs
      • Customer Portal Configs
      • Pricing Page Configs
      • Invoice Portal Configs
    • Handling Events
    • Languages & Frameworks
    • Customize Elements
    • Versions & Beta Testing
  • Help
    • Managing Account & Team
      • Reset Your Password
      • Manage Team Members
    • Frequently Asked Questions
    • Changelog
Powered by GitBook
On this page
  • Billflow Shortcode
  • Step 1: Create a page to hold the Billflow widget.
  • Step 2: Use the shortcode to place a billing page widget
  • Optional Step: override additional configurations via the Shortcode parameters.
  • Available shortcode parameters
  • Next: Advanced Usage

Was this helpful?

  1. No-code Integrations
  2. No-code App Builders
  3. WordPress

Add Widgets

Billflow Shortcode

Step 1: Create a page to hold the Billflow widget.

You can create any page using your normal WordPress editor or page builder to do this.

Step 2: Use the shortcode to place a billing page widget

Shortcode

Editor Screenshot

[billflow billing_page_id="your_billing_page_id"]

Optional Step: override additional configurations via the Shortcode parameters.

The shortcode examples above default to use the settings that you set in the Billflow plugin settings page. However, some people have the use case to override the settings for individual pages, so we have the following setting available to override using the shortcodes.

Available shortcode parameters

billing_page_id

Example Value

"9c7ECmmhey47zZsmEtWC"

Value Type

String

Description

Your billing page id from dashboard.billflow.io

Example

[billflow billing_page_id="9c7ECmmhey47zZsmEtWC"]

gated

Example Value

"subscriber" OR "subscriber, customer"

Value Type

String OR Array of strings

Description

String for the allowed user role OR An array of allowed user roles

Example:

With a single allowed role

[billflow billing_page_id="9c7ECmmhey47zZsmEtWC" gated="subscriber"]

Example:

With a list of allowed

[billflow billing_page_id="9c7ECmmhey47zZsmEtWC" gated="basic_user, premium_user"]

logged_out_only

Value

true | a redirect url relative

Description

Makes the page a logged out only page, if a user is logged in, they will be sent to the home page if it is set to true. Or you can specify a redirect url.

Example: Redirect user to your home page

[billflow billing_page_id="9c7ECmmhey47zZsmEtWC" logged_out_only="true"]

Example: Redirect user to and custom page

[billflow billing_page_id="9c7ECmmhey47zZsmEtWC" logged_out_only="/my-portal-page"]

logged_in_only

Example Value

"true" OR "/a-relative-url-to-the-domain"

Value Type

String

Description

Makes the page a logged in only page, if a user is logged out, they will be sent to the login page or the redirect urlExample

Example:

Redirect user to standard login page

[billflow billing_page_id="9c7ECmmhey47zZsmEtWC" loggin_in_only="true"]

Example:

Redirect user to a custom page

[billflow billing_page_id="9c7ECmmhey47zZsmEtWC" loggin_in_only="/my-login-page"]

upgrade

Example Value

"/a-relative-url-to-your-domain"

Value Type

String

Description

If the current user does not have the role specified by the gated parameter, it will send the user to this upgrade page.Example

Example:

Redirect user to an upgrade page

[billflow billing_page_id="9c7ECmmhey47zZsmEtWC" gated="subscriber" upgrade="/upgrade-checkout-page"]

Next: Advanced Usage

Click next to see how you can add custom frontend logics

PreviousWordPressNextAdvanced Usage

Last updated 4 years ago

Was this helpful?