How to Redirect Users after Login & Registration in WordPress

If you own a WordPress site that allows front-end user registration you’re probably looking for an easy way to redirect users after certain actions, like successful login, registration or edit profile, to custom pages and also keep them out of the WordPress dashboard.

Using the new and improved Custom Redirects module from Profile Builder, you can control to a high extend where to redirect users based on their actions.

In this tutorial we’ll go through the different types of custom redirects you can setup.

Types of WordPress User Redirects

The Custom Redirects module supports a couple of redirect types based on certain user actions, as listed below:

  • After Login – redirect users after successful front-end login
  • After Logout – redirect users when logging out
  • After Registration – redirect users after successful front-end registration
  • After Edit Profile – redirect users to a custom page after they edited their front-end user profile
  • Dashboard – redirect users when trying to access the WordPress dashboard
  • After Password Reset – to redirect users after they successfully changed their password
  • After Email Confirmation – to redirect users after confirming their email address

Now that we listed the type of user actions where we can apply our custom redirects, we’ll look into how to target only certain users, based on redirect filters like user role, username or user ID.

Read more

WordPress Admin Approval based on User Role with Profile Builder

Admin Approval for new users is one of those must have features for every website that allows user registration. Sometimes, deciding who gets to be a user on your website is a good way to keep your user base clean and fight user registration spam.

Taking it further, there are times when you need to approve only certain types of users (user roles) and allow the rest to register without any approval. It’s when admin approval based on user role comes into play.

When to use Admin Approval based on User Role?

A common scenario is when you need to allow registration of two distinct types of users, let’s say Consumers and Service Providers. Each user group should have a unique role, profile type and a separate registration page with different fields.

Read more

A free WordPress Membership plugin – Paid Member Subscriptions

Sometimes, WordPress membership plugins can cause issues even for experienced developers.

  • “A really steep learning curve”
  • “Could not figure out how to set access levels”
  • “Paid for the premium and got half ass support”
  • “After activating this plugin, the speed of my site dropped dramatically”
  • “Not developer friendly”

These is all real feedback from people regarding various WordPress membership plugin. None of the above has anything to do with features or what the plugin can do. Instead, they focus on:

  • bad user experience
  • little to no support
  • and lack of developer support

Paid Member Subscriptions – A free WordPress membership plugin

While developing our new plugin, we didn’t try to implement every single feature a membership plugin might need. Instead we tried to focus on:

  • ease of use and good user experience
  • using best practices when developing the plugin
  • creating a core of features that we can support for all our users (particularly since this it’s a free plugin)
  • took into consideration the possibility to extend the plugin through hooks and filters
  • make sure it works well with other plugins

Keeping it simple

While developing our plugin, we tried to find a balance between a few core features that need to be found in the plugin and features that can be later added via addons or 3’rd party plugins. And this is what we came up width:

Read more

Create WordPress Demo Site with Multisite


Creating demo sites with WordPress Multisite is a quick way to let your customer to try your theme or plugin in a true-to-life environment.

Setting up a demo site for WordPress plugins or themes can be as simple as installing WordPress and giving everyone a demo account. This has several drawbacks:

  • anyone can overwrite what the other testers did and will lead to a messy demo site
  • you can limit what the demo account can do, crippling the effectiveness of the demo
  • you have to reset / clean the demo site every few weeks

Alternatively, you could use a plugin like Ninja Demo, however we decided not due to the price (~ $200), but simply because we figured out this can be a really fun project to play with internally.

With WordPress multisite, you can let them modify, delete upload on your demo without interacting with other demo accounts by simply allowing your users to create a brand new demo site.

In this tutorial we’ll go through:

  • Creating a demo subdomain to the main domain
  • Installing WordPress Multisite
  • Setting up available plugins and themes
  • Replace the complex WordPress signup with a simple “Create Demo” button (custom plugin) that will:
    • Automatically create a new account with a random username and the “demo” password
    • Automatically redirecting and login in the user to the new demo we just created
  • Further improving our setup by hiding certain backend menus and using a site template so all new WordPress demo sites are all the same
  • Conclusions

Read more

Adding reCAPTCHA to WordPress Register, Login and Lost Password Forms with Profile Builder

The improved reCAPTCHA field from Profile Builder now offers an UI for enabling reCAPTCHA verification on all Profile Builder front-end forms, as well as default WordPress register, login and lost password forms.

Having a reCAPTCHA powered registration on your website can help you dramatically reduce user registration spam.


Once you add the reCAPTCHA field to the Manage Fields list in Profile Builder, under the field options, you will be able to select the forms which will have reCAPTCHA verification enabled.


Adding reCAPTCHA to Profile Builder front-end forms

The first set of options allows you to choose which Profile Builder forms should display the reCAPTCHA verification.

By default, only the Register form has reCAPTCHA verification enabled, but you can also add reCAPTCHA to Login and Lost Password front-end forms by checking the corresponding options.

Displaying reCAPTCHA  on the front-end Recover Password form

Displaying reCAPTCHA on the front-end Recover Password form

Having a reCAPTCHA verification in place on the Login and Lost Password forms is a good way to improve your website security and protect yourself against brute force attacks.

Adding reCAPTCHA to WordPress Register, Login and Lost Password forms

Profile Builder allows you to also add reCAPTCHA to the default WordPress Register, Login and Lost Password forms as well.

By default, the WordPress Register form will have reCAPTCHA enabled, but you can choose to also add it to the (back-end) WP Login and Recover Password forms.

reCAPTCHA enabled on default WordPress Login form

reCAPTCHA enabled on default WordPress Login form

With the improved reCAPTCHA field from Profile Builder, you now have full control over which forms (both back-end WP default forms as well as front-end Profile Builder forms) should display the No CAPTCHA reCAPTCHA verification.

reCAPTCHA error on the back-end WordPress Login form

reCAPTCHA error on the back-end WordPress Login form

Note: The improved reCAPTCHA field is available in Profile Builder premium versions (both Hobbyist and PRO), starting with version 2.1.6.

Safari Push notifications for WordPress how and why

Starting with October 2013, with Apple launching OSX Mavericks, Mac users running this operating system could start receiving safari push notifications for WordPress on their desktop not only from their installed apps (i.e. from Gmail or Skype) but also from websites that enabled this service.

To subscribe to a website, one need only visit it from Safari. Once they agree to the subscription, Safari is no longer needed. Actually, no browser is needed. Notifications will pop up in the top right corner.


Read more

WCK Single Metabox just got better


Creating custom fields with our WordPress Creation Kit plugin has just become simpler.

We’ve redesigned the way Single Metaboxes work, reducing the number of steps required for adding content.

WCK’s Custom Field Creator allows you to create single or repeater metaboxes.

One of WCK’s strong points is the ability to create repeater fields as well as repeater groups. This is super helpful when you need to add multiple custom fields or groups of custom fields of the same kind, without knowing the exact number.

This repeater metabox attached to "Our Team" page allows you to add as many team members as you need.

This repeater metabox attached to “Our Team” page allows you to add as many team members as you need.

WCK Single Metabox Improvements

The problem was that because WCK was designed with repeater custom fields in mind, the Single Metabox design was adapted from the Repeater one.

Simply put, in the previous version, to add custom fields which are not repeatable (stored in a single metabox) you needed to click the “Add Entry” button for each one of the custom field groups attached to a post, page or CPT. Only after doing this, you could “Publish” the page/post and have the saved custom fields attached to it.

Here we're using a Single Metabox attached to an Events CPT to add event details stored in custom fields.

Here we’re using a Single Metabox attached to a Events CPT to add event details stored in custom fields.

Only after clicking the "Add Entry" button custom fields data is saved.

Only after clicking the “Add Entry” button custom fields data is saved and you can go ahead and “Publish” the event.

If however you forget to click the “Add Entry” button after adding content in the custom fields and simply click Publish, the custom field data will not be saved and the single metabox content will be empty. An alert of unsaved data may have helped, but it was still going half-way.

This was a serious usability issue which needed improvement. In the redesigned WCK Single Metaboxes, we rethinked the way Single Metaboxes are built, so that we can remove the “Add Entry” button altogether. This eliminates an extra step and simplifies the data entry process.

The NEW Single Metabox:

NEW Single Metabox design eliminates the redundant "Add Entry" button.

The NEW Single Metabox design eliminates the redundant “Add Entry” button.

This redesign impacts and simplifies the WCK UI as well. Based on WCK API, some WCK modules (like Custom Fields Creator, Front-end Posting etc.) were using the single metabox format as well.

This basically means that from now on creating custom content types with WCK will require less steps and fewer clicks.

Note: The improved WCK Single Metabox is available starting with WCK version 1.1.4.

Import / Export WCK Settings addon

Another important addition is the Import / Export Settings addon. This makes it really easy for people working on two environments, to export all WCK Settings from the development site and import them on the live site.

No need to define the same metaboxes, taxonomies or custom post types twice, for both sites. Simply export them to as many sites as you need.

Download The Import And Export Add-On

Have any suggestions on how we can make WCK even better? Share your thoughts in the comments section below.

WYSIWYG User Field, now available in Profile Builder

The list of custom field types you can add to the user profile with Profile Builder has now expanded to include the WYSIWYG User Field.

Your users will now be able to add, edit and format their profile information making use of all the functionality of a Rich Text Editor. The same editor you’ve been used to when editing Posts and Pages in WordPress.

The WYSIWYG User Field is powered by WordPress default TinyMCE editor.


The WYSIWYG field type allows you to add a Rich Text Editor field to the user profile (both front-end and back-end).

Read more

User Field Visibility for Profile Builder

I would like to have some fields which are not visible, some fields visible but not editable for logged users.


Did you ever wanted to have some admin only fields attached to your user profiles? Or fields that are editable by administrators and visible by your user?

Now it’s possible with a new addon for Profile Builder: Field Visibility

Profile Builder – Field Visibility Add-On

By default, extra fields created with Profile Builder can be visible and editable by all user roles both in the front-end forms or in the backend.

Now you can add extra fields that are only visible and editable by an administrator like:

  • admin notes about the user
  • custom ID to connect the user with another system
  • a custom category that only admins can add the users in


User Role based field visibility

Wouldn’t it be nice to have different profiles for different user roles?

Now this is possible with the User Role Visibility for fields.

If in the past you had to use the multiple edit profile forms to achieve this, the User Field Visibility Addon gives you the possibility to have a single edit profile form that displays different fields depending on what user role the current user has.

This applies to the backend Edit Profile page as well.

Note: User Field Visibility requires Profile Builder Pro or Hobbyist version 2.0.8 or higher.

Get Field Visibility for Profile Builder

Numbers and Phone Validation Addon for Profile Builder

I want to restrict an input field to be numerical How can I do that?

Zip codes, phone numbers, custom ID’s require the custom input field in a registration form to be made up of numbers only. That’s where this addon for Profile Builder comes in handy.

Download and activate

icon-150x150First of all, click on the button below to download the add-on. Unzip the downloaded file and copy the contents in the wp-content/plugins directory.

Download The Numbers Only Field Add-On

Please note: The Numbers and Phone Validation Add-On requires Profile Builder version 2.0.5 or higher.

Once the files are moved, head over to the Plugins section of the Dashboard and activate the add-on.

Enable Numbers or Phone Validation for a Custom Input

Once the add-on has been activated head over to the Manage Fields page in Profile Builder. If you select an input field you will see that a new property named Numbers Only appeared below the other properties.


See it in action

Too see your work in action head over to the page where you display the register or edit form and type some letters into your new field and submit the form. You will get an error asking you to enter numbers only!