You can create any page using your normal Wordpress editor or page builder to do this.
Shortcode | Editor Screenshot |
| ​ |
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.
| ​ |
Example Value | "9c7ECmmhey47zZsmEtWC" |
Value Type | String |
Description | Your billing page id from dashboard.billflow.io |
Example |
|
| ​ |
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 |
|
Example: With a list of allowed |
|
| ​ |
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"] |
| ​ |
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 |
|
Example: Redirect user to a custom page |
|
| ​ |
Example Value | "/a-relative-url-to-your-domain" |
Value Type | String |
Description | If the current user does not have the role specified by the |
Example: Redirect user to an upgrade page |
|
Click next to see how you can add custom frontend logics