Code

Elements for Users - Addon for WPBakery Page Builder (formerly Visual Composer)

Elements for Users - Addon for WPBakery Page Builder (formerly Visual Composer)

Elements for Users
Addon for WPBakery Page Builder (formerly Visual Composer)

Define your rule and take control of your content with WPBakery Page Builder and Wordpress.
Show WPBakery Page Builder content elements only to the target visitors or members you want.

Features

Choose VC content elements for everyone you want to show on the page.

Show VC content elements for everyone.

Show VC content elements for visitors only that have not been logged in.

Show VC content elements for visitors for all members.

Show VC content elements for user roles.

Show VC content elements for specific members.

Hide VC content elements for specific members.

Show VC content elements for specific devices, desktops or mobiles (phones or tablets).

Show visual composer elements depending on your query string with simple, yet advanced query check editor.

Show VC content elements between specific date range (and time range).

Show VC content elements between specific time range.

You can give your own functionality to set when to show VC content elements.

Enable/disable the WPBakery Page Builder elements that will show the attribute settings.

The hidden content will be removed from HTML output.

No Javascript, no CSS at the output.

How To Use

Check the demo tutorial video for users.

Check the demo tutorial video for devices.

1. Activate ‘Elements for Users – Addon for WPBakery Page Builder’ plugin. This plugin requires WPBakery Page Builder 4.8 or greater.
2. Go to ‘Elements for Users’ settings under Wordpress Settings. Choose which VC content elements will show user attribute settings.
3. Edit any page/post and go to WPBakery Page Builder element settings.
4. Change ‘Show For’ attribute to the target audience the element will be visible to and set extra parameters if necessary.

Note: Only native WPBakery Page Builder elements are directly supported. For third party WPBakery Page Builder elements (such as elements come within another plugin or theme), Advanced Replace should be enabled for the third party element. This element should be inside the content, not in another shortcode.

Changelog

v1.5.1 (May 2 2018)
- Fixed a bug about js and css not loading on some installations. (Thanks to @bflow for the help solving the issue)

v1.5.0 (April 29 2018)
- Localization is added. Change the pot file in the languages folder to localize the plugin.
- Turkish translation is added.
- Mobile detect script is added.
- Minor updates.

v1.4.0 (March 01 2018)
- Name change.
- Query string parameter check is added.
- Bug fixes and small improvements. 

v1.3.3 (May 10 2017)
- Bug fix about user roles.

v1.3.2 (February 11 2017)
- Improvements and better handling of conflicts

v1.3.1 (November 10 2016)
- Improvements.

v1.3.0 (July 09 2016)
- Date and time range functionalities are added.
- PHP function call functionality is added.
- WP deprecated functionality is updated.

v1.2.7 (Apr 11 2016)
- Bug fix (Thanks to devoyc)

v1.2.6
- Bug fix about user roles (Thanks to codewink)

v1.2.5
- Better error handling for the VC error ("Invalid argument supplied for foreach() in ...") (Thanks to bolaugnaise, siichuan for showing the error.)
- Minor improvements.

v1.2.4
- Minor bug fix.

v1.2.3
- Minor bug fix.

v1.2.2
- Error handling improvement.

v1.2.1
- Bug fix (thanks to Akylenok)

v1.2.0
- Inline replace added.
- Improvements.

v1.1.0
- Selected devices (desktop, mobiles, phones, tablets) added.
- Improvements, bug fixes.

v1.0.0
- Initial Release
by
by
by
by
by
by