Category Archives: Uncategorized

WatuPRO Bridge to Brevo (SendInBlue)

This free bridge is for customers who manage their mailing lists and newsletters with Brevo / SendInBlue. Similarly to our MailChimp bridge, this plugin will let you automatically subscribe users who take quizzes to your mailing lists in ActiveCampaign.

Download version 0.2 (1.9 MB)

or get it from our Git repo

To use the bridge you’ll need your Brevo API key and Account Settings -> API keys.

Adding rules is super simple. Once the plugin is installed you’ll see a link “Bridge to Brevo / SendInBlue” in your WatuPRO menu. Go to it and you can add any number of rules:

Note that only up to 50 lists can be shown at this time.

Using the Data Shortcodes in Shortcode Revolution

The Data Shortcodes tab in the Shortcode Revolution plugin is simple but powerful way to build profile pages, greetings, widgets with user stats, and so on.  It has 3 ways to specify the user whose data we’ll be showing:

Currently Logged User

Probably the simplest and most frequent use will be to get data for the currently logged in user and do something with it. A simple example is just a greeting:

Getting a shortcode for first name

You can get this shortcode and place it in a widget like this for example:

Hello, [srevo-profile user_id=”logged_in” field=”first_name”]!

Which will produce Hello, John! or whatever the user name is. So far so good.

If you want to use it inside your theme instead of a widget you need to use do_shortcode. Like this:

<?php echo do_shortcode(‘Hello, [srevo-profile user_id=”logged_in” field=”first_name”]!’);?>

This is simple and easy.

Fixed User IDUsing the shortcode for a fixed user ID

This usage is less common inside a post or widget because you will rarely have such fixed content for each of your users in the system. It is however very useful if you are doing something with programming in your theme. In this case you can dynamically pass the user ID. Something like this:

<?php echo do_shortcode(‘[srevo-profile user_id=”specific” user_id=”‘.$current_user_id.'” field=”meta_account_status”]’);?>

* Please note that the above example assumes you have created the variable $current_user_id. If not, you can use the built-in WP function get_current_user_id().

User ID Passed by URL Parameter

This is the most powerful way to use the data shortcodes and it works great when you are creating dynamic profile pages or other pages which display data for all users.

Using the shortcode with a GET parameter

In this example we are building a profile page (obviously we have not formatted anything in the enclosed content in the shortcode. But you can nicely format a table or other user interface with colors, font formatting, etc.

The important thing here is the variable name field. You can use any variable – in our example it is called “uid”, but you can use “user_id”, “member_id” or whatever you like. You can then load the profile data by passing this variable in the URL of the page where you have published the shortcode. For example let’s assume you have published the shortcode in this URL:

https://blog.calendarscripts.info/user-profile/

Then going to https://blog.calendarscripts.info/user-profile/?uid=25 (if you have used the variable name “uid”) will show the data for user with ID 25.

Let’s create a very simple example of how you can use this in a page that lists all users in your system. The page could be created with a custom shortcode or a theme function:

<?php
// let's assume you have existing array of members in $members
foreach($members as $member) {
   echo '<p><a href="'.add_query_arg(['uid' => $member->ID], 'https://blog.calendarscripts.info/user-profile/').'">'.$member->display_name.'</a></p>';
}

That’s it. Simple and powerful.

WatuPRO: Automatically Assign Required User Groups or Roles Upon Payment

Required WatuPRO version: 6.5.9.5

The following option has been added in the WatuPRO Settings page -> Payment Settings tab:

Checkbox to automatically assign any required user groups or user roles

This is important when the quiz you are purchasing access to is assigned a category and that category is limited only to selected WatuPRO user groups or WP user roles.

Without the setting the user who is purchasing access will not be able to access the quiz even after payment.

Selecting the checkbox ensures that any required user roles or user groups will automatically be assigned to the user upon payment.

Bundles

The setting is especially powerful if you sell bundles. It will assign required user roles or user groups for all quizzes in the bundle.

If the bundle sells access to quiz categories, the setting will assign the user groups or roles required by these categories.

If the bundle sells access to “number of quizzes” the setting will take no effect.

WooCommerce and EDD bridge

If you are using our WooComerce bridge or EDD bridge to sell access to quizzes or bundles, be assured the same setting will also take effect just like if you are purchasing the products directly.