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

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

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

Restricting Access to Content

Restricting Access to Content

#Overview
WP Fusion adds several methods for restricting access to content based on a user』s tags (or 「lists」 or 「segments」) in your connected CRM.
These features can be used to create members-only content, drip-feed access to content, and create personalized listings of posts, pages, courses, and more.
#Meta Box
WP Fusion adds a meta box to every post, page, and other piece of content on your site, where you can control the visibility of that content and set up redirects if a user doesn』t have access.
You can also apply and remove tags when a page or post is viewed.

There are a few options in WP Fusion』s content restriction meta box:

Users must be logged in to view this page: Check this box to require a user to be logged in to view the content.
Required tags (any): Here you can specify tags that are required to view the content. If the user has at least one of the tags they』ll be able to access it.
Required tags (all): With this setting the user must have all of the tags in order to access the content. For example 「Active Membership」 and 「Gold Member」.
Required tags (not): With this setting, if the user is logged in and has any of the specified tags, they will be denied access.
Redirect if access is denied: Here you can specify a page on your site to redirect to if access is denied. Leave blank to show the restricted content message (see below).
Or enter a URL: Here you can specify an external URL to redirect the user to.
Apply tags when a user views this page: You can specify any number of tags to be applied when the content is viewed.
Remove tags when a user views this page: You can specify any number of tags to be removed when the content is viewed.
Delay: Here you can set a delay in ms before the tags are applied. For example enter 5000 for 5 seconds.

#Restricted Content Message
The restricted content message will be shown if a page is protected and no redirect is specified. You can edit this from the general WP Fusion settings page.

If you enable the setting for Per Post Messages you』ll be able to set a custom message for every restricted post. This setting will appear at the bottom of the post edit screen.
#Restricted Content Message vs Redirect
When protecting a piece of content with WP Fusion you can either set a redirect if access is denied, or leave the redirect blank to show a restricted content message.
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.
#Filter Queries
On the General tab of the WP Fusion settings is an option to 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 (default).
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.

Note: Filter Queries is slow. If you have a lot of posts on your site and you haven』t enabled the Filter Queries Post Types setting, it can easily add several seconds to each page load, or even crash your site.
Filter Queries should be used minimally and only when no other method of protecting content will work.

#Filter Queries Post Types
For best performance, it』s recommended to select the post types you want to use query filtering on from the Post Types dropdown.
If this is left blank then query filtering will be run on every piece of content on your site, which may negatively affect performance.
#Filter Queries Arguments
When using Filter Queries in 「Advanced」 mode, by default it will process at most 200 posts in a single query. This is to protect the stability of your site, since each post requires several database queries to calculate the access rules for the current user.
If more than 200 posts are found with WP Fusion access rules, a notice will be logged to the activity logs.
WP Fusion will log a notice if you attempt to process more than 200 posts at a time with Filter Queries in Advanced mode.
Any posts beyond the first 200 will be ignored by Filter Queries, which may result in content being displayed that should be hidden.
You can override this limit using the wpf_query_filter_get_posts_args filter.
However, the higher the limit, the longer the page will take to load, due to the increased number of database queries. This may also result in out of memory errors or timeout errors depending on the available resources of your server.
#Apply Settings in Bulk
You can also apply settings in bulk by selecting multiple posts, pages, or custom post types from the list table in the admin.
Select the items you want to edit, and choose 「Edit」, from the Bulk Actions menu.
Access the bulk edit panel from the Bulk Actions dropdown
Inside the panel will be a section where you can bulk-configure the WP Fusion settings for the selected posts.

If you check the box for Merge Changes, your new settings will be merged into the existing settings for each post.
If Merge Changes is unchecked, each post』s content restriction settings will be overwritten by the settings specified in the bulk edit tool.
#Restricting Access to Archives and Categories
You may wish to restrict access to a category or taxonomy archive page. Click 「Edit」 next to the category or taxonomy term and scroll down to the WP Fusion – Access Settings section.

You can enable Restrict access to archives and select a required tag to protect the archive page for that post type.The access restrictions work the same way they do for pages. Keep in mind that this won』t restrict all content that has the category, tag, or term specified— it will just restrict access to the archive pages for that content.
If you want to restrict access to all content that has the given category or term, check the box next to Restrict access to all. These restrictions will take priority over an individual post』s access rules.
If you want to completely hide the taxonomy term when a user doesn』t have access, check the box for Hide term. This will remove the category / term from all term listings, index pages, search results, and navigation.
#Testing content protection
There are a few ways to review and test your content protection with WP Fusion.
#Review in the admin
When viewing any table of posts, pages, courses, or other content in the admin, you』ll see a lock icon indicating that an item is protected by WP Fusion.

You can hover over the lock icon to display a tooltip showing the access rules for that piece of content.
#Preview with tag
The simplest method for testing access rules is to use the Preview With Tag feature in the admin toolbar.

This will let you preview any page on your site as if your user currently had the selected tag. You can also select Lock All or Unlock All from the menu for additional preview options.
#Testing as a user
The most reliable way to test your site experience is to use an actual user account.
By default your admin user account is excluded from WP Fusion』s content protection rules, but you can disable this by un-checking the box for Exclude Administrators in the WP Fusion settings. Or you can use a test (non administrator) use account.
When testing with a user account, you can see and modify the user』s tags via their admin user profile.

If you』ve just applied a new tag in your CRM, you may need to click Resync Tags to load the updated data into WordPress. To automate this process consider setting up a webhook.

#Was this helpful?

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

Yes

No

myCRED

myCRED

#Overview
myCRED is a points management system that gives you a lot of flexibility in 「gamifying」 your site using points, badges, and other rewards. WP Fusion integrates with myCRED to let you link CRM tags with badges and ranks for tracking and granting user achievements.
#Badges
The WP Fusion settings can be found at the bottom of the Edit Badge screen. When a badge is earned, the selected tag will be applied in your CRM.

#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. When the tag is removed, the badge will be removed from the user.
#Ranks
The WP Fusion settings can be found at the bottom of the Edit Rank screen.

There are two settings:

Apply tags: Here you can specify any number of tags to be applied in your CRM when the rank is earned
Link with tag: By linking a rank with a tag, you can automatically grant ranks to users based on automations in your CRM. When the selected tag is applied to the contact, the user will be assigned the linked rank.

 

#Was this helpful?

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

Yes

No

GamiPress

GamiPress

#Overview
GamiPress lets you 「gamify」 your WordPress site by granting achievements based on a wide variety of triggers.
WP Fusion integrates with GamiPress to allow you to apply tags in your CRM when achievements and ranks are earned, as well as to sync points and ranks to custom fields in your CRM, which can be used to drive your marketing campaigns.
#Achievements
The WP Fusion settings can be found at the bottom of the Achievement Data box while editing an Achievement (note that to use achievements with Gamipress you need to first create an achievement post type at Gamipress » Achievement Types).

There are two options:

Apply tags: These tags will be applied in your CRM when the achievement or badge is earned.
Link with tag: This allows you to automatically grant an achievement by applying a tag. The tag is 「linked」 to the achievement, and if the tag is removed, the achievement will likewise be revoked.

#Ranks
WP Fusion also integrates with the Ranks system in Gamipress. The settings are found when editing any single rank.

Here you can specify tags to be applied in your CRM when the rank is earned.
#Requirements
When editing any Points Type, Achievement, or Rank, you can use tags being applied or removed in your CRM as a condition.
For example when a Profile Complete tag is applied by WP Fusion, grant the user 10 points.

To set this up, in the condition dropdown under the WP Fusion header, select either CRM tag applied or CRM tag removed. Then you will be able to select the tag from the next dropdown that appears.
When the specified tag is applied or removed, the requirement will be met, and the Points, Achievement, or Rank will be awarded.
#Syncing points and ranks
WP Fusion also allows you to sync a user』s earned Gamipress points and ranks to your CRM.
Head to the Contact Fields list in the WP Fusion settings, and scroll down to the Gamipress section.

For each point type and rank type on your site, you』ll be able to select a corresponding custom field in your CRM.

When points are earned the new point value will be synced to the selected custom field in your CRM
When a rank is earned, the title of the new rank will be synced to the selected custom field in your CRM

The sync with points and ranks is bidirectional, meaning you can update a user』s points or ranks in your CRM and the data will automatically be updated in WordPress.
This can also be used to keep Gamipress points and ranks in sync across multiple sites, as long as they are all connected to your CRM with WP Fusion.

#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

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

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

remove_tags()

remove_tags()

#Overview
This function allows you to remove an array of tags (using tag IDs) from a user.
#Remove tags from the current user
$tags = array(123, 456, 789);
wp_fusion()->user->remove_tags( $tags );
#Remove tags from a specific user ID
$tags = array(123, 456, 789);
wp_fusion()->user->remove_tags( $tags, $user_id );
The function will return true if the tags were removed successfully, and false if there was a connection error or the user wasn』t found in the CRM. Any errors will be logged to the WP Fusion Logs.
#Examples
#Remove a tag when another tag is applied
WP Fusion includes a lot of interfaces for applying tags, but because removing tags is less common most of our integrations don』t include options for removing tags.
This example removes the tag Pending Signup when the tag Profile Complete is applied.
function remove_pending_signup_tag( $user_id, $tags_applied ) {

$tag_to_check = wpf_get_tag_id( 'Profile Complete' );
$tag_to_remove = wpf_get_tag_id( 'Pending Signup' );

if ( in_array( $tag_to_check, $tags_applied ) ) {
wp_fusion()->user->remove_tags( array( $tag_to_remove ), $user_id );
}

}

add_action( 'wpf_tags_applied', 'remove_pending_signup_tag', 10, 2 );

#Was this helpful?

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

Yes

No