Activity Logs

Activity Logs

#Overview
WP Fusion includes a logging tool, which you can enable from the Advanced tab of the options page.

There are three options:

Enable Logging: This is the default level of logging for WP Fusion. It』s on by default but can be turned off.
Only Errors: With this checked, only error level messages (like API errors or timeouts) will be recorded to the logs.
HTTP API Logging: With most CRMs, WP Fusion utilizes the WordPress HTTP API for API calls. If this setting is available you can turn it on and log the raw API requests and responses from your CRM. Note that this will add a lot of extra data to your logs so it』s recommended to only turn this on temporarily for debugging purposes.

When the logs are enabled, you』ll see a new tab appear at the top of the WP Fusion settings page with a link to the activity logs.
The logs can also be accessed in the main WordPress admin menu under Tools » WP Fusion Logs.
#The logs
The activity log will record any API calls sent by WP Fusion, as well as any webhooks received and auto-enrollments that are triggered.
You can filter the log entries by severity level, source (plugin integration), and related user by using the dropdowns at the top.
You can adjust the number of entries displayed per page by opening the Screen Options panel at the top of the table.

#Field formatting
When setting up the field sync between WordPress and your CRM in the Contact Fields settings, WP Fusion gives you the option to select a field type for each field.
If a special field type is selected, then the data for that field will pass through a filter before being sent to your connected CRM.
For example many CRMs have require special treatment for date fields, they require the fields to be in a timestamp, and so when a field type is set to 「date」, WP Fusion converts the value automatically for you.

In cases where a field value has been modified, the logs will show both the input data and the data that was sent to your CRM.
This can be useful in troubleshooting issues with specific fields not syncing correctly.
#Errors
The logs will also record any API errors encountered. These will vary depending on your connected CRM, but can be caused by several things— like trying to apply a tag that』s been deleted, API quotas exceeded, or malformed data.

If you encounter an error in the logs that you don』t understand, please contact our support team so we can resolve the issue for you.
#Error notifications
You may want to receive notifications when WP Fusion has an API error. If so, check out our other plugin, Fatal Error Notify.
It can automatically send you an email or ping you on Slack when WP Fusion has an API error.
The Fatal Error Notify plugin can ping you on Slack when WP Fusion encounters an API error
The notification will include the error message, the affected user, and the page the user was on.
#HTTP API logging
With HTTP API Logging enabled, WP Fusion will log the raw requests and responses to your CRM over the WordPress HTTP API. This can be used to troubleshoot more complex issues that aren』t captured at the normal level of logging.
HTTP API logging records the raw HTTP requests and responses from your CRM.
Every API call sent to your CRM will be recorded, and each entry will contain the request URL, the request parameters, and the raw response.
#Common Errors
These are some common errors, with steps to resolve them:
#Notice: Webhook received but no matching user found
When you』re using a webhook with the method ?wpf_action=update or ?wpf_action=update_tags, WP Fusion will only load data from your CRM if there is already a user on your site with a matching contact ID. If there is no user with a matching contact ID, the webhook will be ignored.
This is intended for cases where you have contacts in your CRM that don』t need to have an account in WordPress, and is generally safe to ignore.
However if you need every contact in your CRM to have a user account, you can change your webhook to ?wpf_action=add, which will both update existing users and create new users if they don』t already exist.
#Notice: No contact ID for user, failed to apply tags
This message is triggered when a plugin integration attempts to apply a tag (for example due to a checkout, page view, or membership level change), but WP Fusion was unable to find a contact ID in your CRM for the user.
This could happen because you』ve deleted or merged contacts in your CRM, and so the contact ID that was previously associated with the user has changed. If that』s the case, run a Resync Contact IDs and Tags operation from the Advanced tab in the WP Fusion settings to refresh the cache of contact IDs.
It could also happen if a user wasn』t synced properly to your CRM at registration— either due to an API error, or that user』s role being excluded from sync. In that case you can run an Export Users batch operation.
It』s also perfectly fine to ignore this notice if the user in question doesn』t need to be tagged in your CRM.
#Notice: Unable to determine tag ID from tag name
This notice can be logged when you』re applying a tag via AJAX, either via link click tracking, or the Media Tools addon.
In order to send the API call to apply a tag in your CRM, WP Fusion needs to know the ID of the tag to be applied.
WP Fusion will attempt to take the tag name you』ve entered and convert it to a tag ID, but if it can』t find a matching tag ID then this message will be logged and the tag won』t be applied.
If you』re sure the tag name you』ve entered matches exactly the tag name in your CRM, try clicking Resynchronize Available Tags & Fields from the Setup tab in the WP Fusion settings to refresh the cache of available tags.
#Error: Resource not found / contact not found / 404
For performance reasons WP Fusion keeps a cache of the CRM contact ID for every user on your site.
When WP Fusion goes to update a contact record or apply tags over the API, it uses this cached contact ID rather than having to look up the contact record again by email address.
However, if you have deleted, merged, or de-duplicated contact records in your CRM, the cached contact ID may no longer be valid, and API calls to update contacts or apply tags might return a Resource not found error.
The best way to fix this is to run a Resync Contact IDs operation from the Advanced tab in the WP Fusion settings. This will re-lookup every WordPress user on your site by email address in your CRM and refresh the local cache of contact IDs.
#Error: cURL error 28 — Operation timed out
Most API calls WP Fusion sends to your CRM should complete within 0.5 to 2 seconds.
However there are situations where your CRM』s API may be offline, in which case WP Fusion includes a built in timeout to avoid breaking the visitor experience on your site. This timeout is set to between 10 and 30 seconds depending on your connected CRM.
If this timeout is reached WP Fusion will give up on waiting for a response from your CRM, a cURL error 28 error will be logged, and the page will continue to load normally.
When your CRMs API comes back online you may want to run one or more batch operations to correct for any data that wasn』t synced or tags that weren』t applied during the outage.
If the problem is happening consistently, you could consider using a code snippet to extend the HTTP API timeout for your site. We have an example here.
#System Errors
To aid in troubleshooting, the activity logs will also record two types of system errors. While these don』t necessarily come from WP Fusion, they can affect the stability of your website as whole.

Those error types are:
#Out of memory errors
An 「Allowed memory size exceeded」 error occurs when your site runs out of available memory and stops processing a page load. This can be caused by underpowered hosting, or having too many plugins active.
If an out of memory error happens before WP Fusion has sent data to your CRM, this would prevent any data from being synced. Read some info on fixing this error at WPBeginner.
#Maximum execution time exceeded errors
Most websites will process a single page load for 30 seconds before timing out, and triggering a 「Maximum execution time exceeded」 error.
As an example, let』s say you have several WooCommerce extensions active, and a single checkout does the following:

Creates a new WordPress user
Sends the order invoice data to Xero
Sends the order shipping information to ShipStation
Generates a PDF invoice
Syncs the customer data to ActiveCampaign (via WP Fusion)

Each of these steps takes a few seconds to process. If your site reaches the 30 second timeout limit while it』s still generating the PDF invoice, then this would prevent WP Fusion from sending any data to your CRM.
Preventing these errors involves either increasing your server resources (so each step processes faster), deactivating some plugins (so there are fewer steps to process), or increasing your server』s max_execution_time variable.
For more info on this error see this guide from WPBeginner.
#Logs performance and misc.
The activity logs are stored in their own database table, {$wpdb->prefix}wpf_logging, so they generally shouldn』t have any performance affect on the rest of your site. In addition the table is limited to 10,000 entries, after which the oldest entries will be automatically begin to be dropped.
You can flush the logs database at any time by clicking the Flush Logs button at the bottom of the logs screen.
#Errors displaying the logs
There are some cases where your site doesn』t have enough resources to actually display the logs table, if there are a lot of entries. You might see an error like this:

Increasing your available memory will generally fix it, but you can also force clear the logs by appending &flush-logs=true to the URL in your browser, and hitting enter.
#Logs max entries
If the number of log entries is a recurring problem, you can also limit the total number of log entries using the wpf_log_max_entries filter. For example:
add_filter( 'wpf_log_max_entries', function( $max ) {
return 5000;
} );
That code would limit the maximum number of entries to 5,000 instead of the default 10,000.

#Was this helpful?

Let us know if you liked the post. That』s the only way we can improve.

Yes

No

user_can_access()

user_can_access()

#Overview
This function determines whether the a user can access a given post (by ID). It can use the current logged in user, as in the example below, or an alternate user ID can be provided.
#Basic Usage
The basic usage takes a post ID and tells you whether or not the current user has access to that post, based on the access rules configured in the WP Fusion meta box, and the current user』s logged-in status and CRM tags.
if ( wpf_user_can_access( $post_id ) ) {

echo "Welcome to the post.";

} else {

echo "Sorry, but this content is restricted.";

}

#With a user ID
You can also pass in a user ID as the second argument to perform the check on other users. For example, to check by a user』s email address:
$user = get_user_by( 'email', '[email protected]' );

if ( wpf_user_can_access( $post_id, $user->ID ) ) {

echo "Welcome to the post.";

}
#Within a loop
When used within a loop, you can omit the $post_id and WP Fusion will check the access rules against the current post:
if ( wpf_user_can_access() ) {

echo "Welcome to the post.";

}

#Was this helpful?

Let us know if you liked the post. That』s the only way we can improve.

Yes

No

How To Connect ActiveCampaign to WordPress

How To Connect ActiveCampaign to WordPress

In this video, you will learn how to install WP Fusion and set up a direct connection to your ActiveCampaign account.
To get started install and activate the plugin, then navigate to settings -> WP Fusion.
From the 『Select Your CRM list』 choose 『Active Campaign』
Next, we will need to locate to pieces of information.
Your API URL and your API Key.
To find the API URL login to your ActiveCampaign account.
Go to 『Settings』
And click on the 『Developer』 tab.
Copy the URL
And paste it into the API URL field in WP Fusion
The API Key can be found directly below the URL

Let』s copy it once more and paste it into the appropriate field.
Finally, click on 『Connect』.

WP Fusion will now establish a connection to Active Campaign and import your tags and custom fields.
To finalize the process click on 『Save Changes』.

#Was this helpful?

Let us know if you liked the post. That』s the only way we can improve.

Yes

No

General Settings and Basic Setup

General Settings and Basic Setup

#WP Fusion Settings
Once you』ve connected WP Fusion to your CRM, the settings page will reload and you』ll see the rest of WP Fusion』s settings.

Across the top of the page are several tabs corresponding to different aspects of WP Fusion』s functionality. You may see additional tabs depending on which plugins you have installed or which addons you have enabled.
Note: As part of the setup process, WP Fusion sets default settings based on the plugins you have installed and your connected CRM. In many cases it』s not necessary to modify these default settings at all, and in some cases modifying them may lead to unexpected behavior.
#General Settings
The General settings tab lets you configure some global defaults as to when WP Fusion syncs data with your CRM, as well as some content restriction defaults.
#Automatically create contact records for new users
The settings in this section control how WP Fusion handles new users on your site. The default is to sync all new user registrations to your CRM.

The options are:
#Create Contacts
When this box is checked, new user registrations will be synced to your CRM as contact records. It is strongly recommended to leave this enabled. If it』s disabled, only profile updates from existing users will be synced with your CRM. New users and customers will be ignored.
#Assign Tags
The tags specified here will be assigned whenever a new user registers and is added to your CRM.
#Lists, Layout, Owner, etc.
You may see additional options here depending on your connected CRM, like Lists, Default List, Default Contact Owner, or Contact Layout. Any settings you specify here will apply when WP Fusion adds a new contact record to your CRM.
#Synchronize Contact Data
The settings in this section control how WP Fusion sends data to and loads data from your CRM.

The options are:
#Push
When this box is checked, WP Fusion will watch for user profile updates and sync any enabled fields to the corresponding fields in your CRM, via the field mapping you』ve set on the Contact Fields settings tab.
#Push All
Turning on this setting causes WP Fusion to watch the wp_usermeta database table for any changes to user meta, and sync those as the fields are changed in the database.
It』s generally not necessary to turn this on unless you』re trying to sync data from a plugin not already supported by WP Fusion. Turning on Push All may result in unexpected behavior with how fields are formatted, since values stored in the database aren』t always the same as the values entered on profile forms.
#Login Tags Sync
With this setting on WP Fusion will load a user』s updated tags from your CRM when they log in to your site.
It』s recommended to leave this off, as it will slow down your login process by a few seconds. However if your CRM doesn』t support webhooks, you can use this setting to keep the cache of tags updated each time someone logs in.
#Login Meta Sync
With this setting on WP Fusion will load a user』s updated metadata from your CRM when they log in to your site.
It』s recommended to leave this off, as it will slow down your login process by a few seconds. However if your CRM doesn』t support webhooks, you can use this setting to ensure that your users』 metadata is kept up to date with the corresponding contact record in your CRM.
#Site Tracking
If WP Fusion includes site tracking scripts for your CRM, you』ll see an option to enable them here. This is off by default.
#Content Restriction
The settings in this section establish some default behavior about how WP Fusion protects restricted content on your site. For more details on restricting access to content see the next section.

The options are:
#Exclude Administrators
By default WP Fusion excludes site administrators from any content protection rules or redirects. You can un-check this box to have content protection rules apply to administrators as well.
#Hide From Menus
When this box is checked, WP Fusion will hide any menu items from your site navigation if the user doesn』t have permission to access the associated content, based on the settings configured in the WP Fusion meta box.
This can be used to make personalized menus— for example a list of courses that the user can currently access.
#Filter Queries
When this is enabled WP Fusion will modify any database queries so that posts a user doesn』t have access to are removed from the results.
This can be used to create post grids or course listings of only items a user has access to. It works with all plugins and theme builders.
There are three options:

Off: No filtering.
Standard: Restricted posts will be removed from the query results after the query is run.
Advanced: Restricted posts will be excluded from query results before a query is run. This method is slower but works better when using pagination and limits on the number of results.

Generally Standard mode is sufficient. You would only want to use Advanced mode if your restricted items are split across multiple pages (with pagination), or if you』re doing filtering on the items.
For example hiding lessons a user doesn』t have access to in the LearnDash course navigation would work great with Standard mode, but hiding restricted items in the WooCommerce shop catalog or in FacetWP search results would work best with Advanced mode.
#Filter Queries – Post Types
By default query filtering applies to all content on your site. Using this setting you can limit query filtering to just specific post types. This can improve the performance of the query filtering process.
#Default Not Logged-In Redirect
Here you can specify a URL to redirect users to when they are denied access to a piece of content on your site because they are not logged in (usually a login page).
If set, this takes priority over any redirect configured on an individual post in the WP Fusion access settings.
Normally the Default Not Logged-In Redirect would be used to redirect people to a login page if they』re denied access due to not being logged in, while allowing you to have a different redirect (for example to a sales page), if they are logged in but don』t have the required tags.
#Default Generic Redirect
Here you can specify a URL to redirect users to when they are denied access to a piece of content on your site. This will be used if the user does not have the required tags, or if the user is not logged in and there is Default Not Logged-In Redirect specified.
If a redirect is configured in the WP Fusion meta box on a specific post, it will take priority over the Default Generic Redirect.
If this setting is left blank, WP Fusion will attempt to replace the content of the post with the Default Restricted Content Message, but this does not work 100% of the time with custom post templates (such as WooCommerce products). See this page for more info.
Note that this should be a fully-formed URL, such as https://mysite.com/please-log-in/, not /please-log-in/.
#Return After Login
If a visitor to your site is denied access to a piece of content protected by WP Fusion, WP Fusion will set a cookie that records the page they tried to access.
If they log into the site within the next five minutes, WP Fusion will attempt to redirect them back to the content they were previously denied access to.
This setting is on by default.
#Return After Login Priority
Login redirects happen on a 「first come, first served」 basis. If another plugin does a login redirect, then WP Fusion』s Return After Login feature won』t run. This setting lets you adjust the priority at which WP Fusion』s login redirects run. A lower number means a higher priority.
For example WP Fusion』s Logins Addon runs its login redirects at priority 1, so if you wanted the Return After Login redirects to happen before the Logins Addon redirects, you could set the priority in this setting to 0.
#Default Restricted Content Message
Here you can set a message to be displayed to users and visitors when they don』t have permission to access a piece of content, and no redirect has been specified.
This works by replacing the 「content」 area of the page, which works well with normal posts and pages that have a single content area.
The restricted content message on a blog post.
It does not work as well on pages that have multiple content areas or customized templates, for example a product or course page.
The Restricted Content Message isn』t as effective on a product page since the content area is only a small part of the layout.
In cases like that it』s preferable to set a redirect when access is denied, via the WP Fusion meta box.
#Per Post Messages
Enabling this setting will add a new metabox in the admin for every post and page on your site, where you can enter a restricted content message specific to that piece of content. If no custom message has been entered, the default will be used.
#Site Lockout
Site lockout lets you deny access to your entire website if a user is logged in and has a specific tag.

For example if you had a sales website and a separate course website, a renewal payment failure on the sales site could apply a tag Payment Failed.
If the user logs into the course site and has the Payment Failed tag, they can be redirected back to the sales site to update their billing information.
For making your entire site private (regardless of tags) we recommend the Force Login plugin.
The options are:

Lockout Tags: If the user is logged in and has any of these tags, the lockout will be activated.
Lockout Redirect: If the lockout is active, the user will be redirected to the URL specified here. This can either be a page on the same site, or a page on another site (for example a sales site, or a credit card update form at your payment provider』s site).
Allowed URLs: Here you can optionally enter additional URLs that bypass the lockout feature, for example your contact page or a product page. Enter one URL per line. You can use a wildcard * symbol to partially match a URL, for example https://mysite.com/account* will match the account page and any sub pages.

#SEO
By default your restricted content will be hidden from search engine crawlers and social sharing tools.

Enabling Show Excerpts will allow search engine spiders and other scrapers / crawlers to view an excerpt of your protected content. This applies to:

Google
Bing
Ask
Yahoo
Facebook

For example if you wanted to share a link to your protected content on Facebook, enabling Show Excerpts would allow Facebook to extract an excerpt of that content, instead of showing your restricted content message.
You can also optionally override the default Excerpt Length.
#Webhooks
Webhooks enable a bi-directional sync between WP Fusion and your CRM. When a contact is updated or a tag is applied in your CRM, webhooks allow the data to be loaded back into WordPress automatically. Webhooks setup for each of our supported CRMs is covered here.

#Access Key
Your access key goes in your webhook URL, this authenticates the webhook to WP Fusion. Your access key is generated randomly when you first set up WP Fusion.
If the access key in your webhooks doesn』t match the key shown here, you will see an error message in the WP Fusion logs when a webhook is received.
You can change your access key by editing this field.
#Test Webhooks
If you click this button, a sample webhook payload will be sent to your site from our servers (on this site), to see if your site accepts or rejects the data.
This is a good way to test if a security plugin or firewall is blocking incoming webhooks, though it』s not an absolute indicator since it』s possible for your site to allow incoming data from https://wpfusion.com, while still blocking data from your CRM.
#Imported Users
These settings affect how WP Fusion handles passwords for newly imported users.

WP Fusion can import users via a webhook, via the built in import tool, or via a ThriveCart success URL.
#Return Password
When a new user is imported, a random 8 character password is generated for them. Check this box to sync this automatically generated password back to a custom field in your CRM (specified by Return Password Field).
The password will only be synced to your CRM after it has been generated by WP Fusion, future changes to users』 passwords will not be synced.
This is an easy and pretty secure way to send out a welcome email from your CRM containing the login details for a new user on your site.
#Username Format
By default WP Fusion will set the username for all newly imported users to the contact』s email address.
You may not want the username to be the email address if you』re using a plugin (such as BuddyPress) which shows usernames on the frontend of the site. In that case you can change the default behavior.
The three options are:

Email Address: Usernames will be set to the contact』s emails address
FirstnameLastname: Usernames will be a combination of the contact』s first name and last name (i.e. JaneDoe)
Firstname12345: Usernames will be the contact』s first name, followed by a 5 digit random number (i.e. Jane36808)

For more control over how the usernames are generated, see the wpf_import_user filter.

#Was this helpful?

Let us know if you liked the post. That』s the only way we can improve.

Yes

No

wpf_get_current_user()

wpf_get_current_user()

#Overview
This function works similarly to the wp_get_current_user function, but it will also work during an auto-login session.
The function will return a WP_User object, or false if the user isn』t known.
#Get the current user
$user = wpf_get_current_user();
if ( false !== $user ) {
echo $user->user_email; // The email address of the current user, or temporary auto-login user
}

#Was this helpful?

Let us know if you liked the post. That』s the only way we can improve.

Yes

No

How to Connect AgileCRM to WordPress

How to Connect AgileCRM to WordPress

<span data-mce-type="bookmark" style="display: inline-block; width: 0px; overflow: hidden; line-height: 0;" class="mce_SELRES_start"></span>
In this video, you will learn how to install WP Fusion and set up a direct connection to your AgileCRM account.
To get started install and activate the plugin, then navigate to settings -> WP Fusion.
From the 『Select Your CRM List』 choose 『Agile CRM』
We will need to locate three pieces of information

Your AgileCRM subdomain
Your User Email
And Your API Key.

Your AgileCRM subdomain can be found by logging into your account and looking at the URL in the browser address bar.
Copy the first part of the address, after the https:// and prior to agilecrm.
Paste into the appropriate field in WP Fusion.
Your user email is the email address you use to login to AgileCRM.
And the API Key can be found by in your account by clicking on the profile icon in the top right corner and choosing 『Admin Settings』.

In the left hand menu scroll down and select 『Developers and API』.

The copy the 『Rest API』 key and paste into the appropriate field in WP Fusion.


Finally, click on 『Connect』.
WP Fusion will now establish a direct connection to Agile and import your tags and custom fields.
To finalize the process click on 『Save Changes』.

#Was this helpful?

Let us know if you liked the post. That』s the only way we can improve.

Yes

No

get_users_with_tag()

get_users_with_tag()

#Overview
This function returns an array of user IDs who have a specified tag. You can use either a tag ID or label.
#Get all users with the Member tag
$user_ids = wpf_get_users_with_tag( 'Member' );
#Get all users with tag ID 123
$user_ids = wpf_get_users_with_tag( 123 );

#Was this helpful?

Let us know if you liked the post. That』s the only way we can improve.

Yes

No

Installation Guide

Installation Guide

#General Info
Navigate to Plugins » Add New in your WordPress dashboard and upload the .zip file you received when you purchased WP Fusion.
After WP Fusion has uploaded and you』ve activated the plugin, go to Settings » WP Fusion to activate your WP Fusion license key, select your desired CRM, and follow the instructions to configure the initial connection.

Once you click Connect, WP Fusion will validate your API credentials and then load some data from your CRM like your available tags and custom fields.
Remember: make sure to activate your license key. A valid license key is required to receive automatic updates, and ensures that your copy of WP Fusion will always be compatible with the latest versions of WordPress and your CRM』s API.
Once that』s finished you can save the settings, and the rest of the WP Fusion options will appear. Proceed to General Settings and Basic Setup for more info.
#Resynchronize Available Tags and Fields
If you later add new tags or fields in your CRM, you can always go back to the Setup tab and click the green Resynchronize Available Tags & Fields button to load the latest tags and fields into the dropdowns in WordPress.

This will also update the values for any other dropdowns in WP Fusion』s settings, depending on your connected CRM. For example available products, pipelines, deal stages, owners, and contact layouts.
All data that』s not tied to a specific contact record can be refreshed by clicking Refresh Available Tags and Fields.
#Initial User Sync
After you』ve connected WP Fusion to your CRM and saved the settings page, WP Fusion will go through the users on your site and attempt to match them with contact records in your CRM.
A status bar will appear at the top of the page showing this progress. If a match is found the contact』s ID and tags will be loaded and cached in WordPress for future use.
No data will be sent to your CRM during this process and no user data will be modified.
#CRM Specific Setup Guides

ActiveCampaign Installation Guide
AgileCRM Installation Guide
Autonami Installation Guide
Bento Installation Guide
BirdSend Installation Guide
Capsule Installation Guide
CovertKit Installation Guide
Drift Installation Guide
Drip Installation Guide
EngageBay Installation Guide
FluentCRM Installation Guide
FluentCRM (REST API) Installation Guide
GetResponse Installation Guide
Gist Installation Guide
Groundhogg Installation Guide
Groundhogg (REST API) Installation Guide
Growmatik Installation Guide
HubSpot Installation Guide
HighLevel Installation Guide
Infusionsoft Installation Guide
Intercom Installation Guide
Kartra Installation Guide
Klaviyo Installation Guide
KlickTipp Installation Guide
MailerLite Installation Guide
Mailchimp Installation Guide
Mautic Installation Guide
NationBuilder Installation Guide
Ontraport Installation Guide
PulseTechnologyCRM Installation Guide
Salesflare Installation Guide
Salesforce Installation Guide
Sendinblue Installation Guide
User.com Installation Guide
Zoho Installation Guide

#Was this helpful?

Let us know if you liked the post. That』s the only way we can improve.

Yes

No

BadgeOS

BadgeOS

Using WP Fusion with BadgeOS, you can tag users when they earn a badge, allowing you to segment contacts in your CRM by earned achievements, as well as letting you trigger automated followup sequences when an achievement is earned.

#Linking Badges
By linking a badge with a tag, you can also automatically grant badges to users based on automations in your CRM. When the selected tag is applied to the contact, the user will be awarded the badge. Likewise, when the tag is removed, the badge will be removed.
#Syncing Points
WP Fusion also lets you sync a user』s earned points to your CRM. You can find the field 「_badgeos_points」 in the Contact Fields list. Just select a field in your CRM, and any changes to a user』s points will be synced automatically.

#Supercharge BadgeOS
This opens up countless new possibilities for making your user engagement system that more engaging: using conditions and rules in your CRM』s automation tools, you can award badges based on a customer』s total revenue, number of completed surveys, engagement with your media (using our Media Tools Addon) and so much more.

#Was this helpful?

Let us know if you liked the post. That』s the only way we can improve.

Yes

No

has_tag()

has_tag()

#Overview
This function determines whether a user has a given tag. A tag ID or label can be provided.
if ( wpf_has_tag( 'Paying Customer' ) ) {

echo "Thanks for your payment!";

}

Or more complex conditions can be created by combining calls to has_tag(), for example:
if ( wpf_has_tag( 'New Customer' ) && ! wpf_has_tag( 'Watched Intro Video' ) ) {

echo "Welcome to our site! Please watch our introduction video here:";

}

#By User ID
To check the tags for a specific user, pass a $user_id as the second parameter:
if ( wpf_has_tag( 'Paying Customer', $user_id ) ) {

echo "Thanks for your payment!";

}

#Array Syntax
The function also accepts an array of tag names or IDs. If the user has any of the provided tags the function will return true.
if ( wpf_has_tag( array( 'Pending Affiliate', 'Accepted Affiliate' ) ) {

echo "Thanks for joining our affiliate program!";

}

#Was this helpful?

Let us know if you liked the post. That』s the only way we can improve.

Yes

No