# PersonaLizer
Contributors: bastho, agencenous, aureliefoucher   
Donate link:  https://apps.avecnous.eu/boutique/nos-extensions-wordpress/personalizer/?mtm_campaign=wp-plugin&mtm_kwd=personalizer&mtm_medium=wp-repo&mtm_source=donate
Author URI:  https://apps.avecnous.eu/?mtm_campaign=wp-plugin&mtm_kwd=personalizer&mtm_medium=wp-repo&mtm_source=author  
Tags: persona, UX, filtering, customization  
Requires at least: 5.9  
Tested up to: 7.0  
Stable tag: 1.3.2  
License: GPLv2  
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Improve the UX by adding a UR selector in the UI of your site!

Persona selection and filtering.

## Description

Improve the UX by adding a UR selector in the UI of your site!

This plugins provides a set of tools in order to let visitors select a _profile_ and have filtered content during the visit.

You can add as many personas as you want, assign posts the them and display a customizable selector on your site.

### Use case

Many websites provides a "you are" or "I am" experience.

This plugins allows to create a new taxonomy, called **Persona**, that you can assign to any post, page or any custom post-type. Each persona can be customized with primary and secondary color.

Once a Persona is selected from the Selector Block, the visitor have the unappropriate content shown attenuated.

You can also list assigned personas on each post in the query loop with the **Post persona** block.

### Premium version

The <a href="https://apps.avecnous.eu/boutique/nos-extensions-wordpress/personalizer-module-pro/?mtm_campaign=wp-plugin&mtm_kwd=personalizer-pro-addon&mtm_medium=wp-repo&mtm_source=premium">PRO addon</a> provides more features:

* Content filtering: not just attenuation, (optional)
* Block option: Define for each block if you want to make it visible for one or more specific personas
* Sub-personas: For a more accurate content management
* Advanced editor: many display options with zero line of code

## Installation

1. Upload `personalizer` to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress admin
3. Go to the settings page in Settings > PersonaLizer
4. Check the post-types you want to be filtered
5. In any submenu of selected post-types (eg: posts), access to the Persona manager, and add some ones
6. Assign posts to personas
7. Add the persona selector on front with the provided block

## Screenshots

1. Persona manager
2. Settings page
3. Block editor


## Frequently asked questions

### Can I uses persona on custom post-types?

Yes, all post-types are available. Go to Settings > PersonaLizer and check what you need

### Can I display personas assigned to posts in a query loop?

Of course!

The `post-personas` block is here for that purpose.

### Can I exclude posts not matching the selected persona from results?

You want to only show the appropriate posts to your visitors. Actually, non-matching posts are just faded.

If you need to exclude pposts from the main query, you need to get the <a href="https://apps.avecnous.eu/boutique/nos-extensions-wordpress/personalizer-module-pro/?mtm_campaign=wp-plugin&mtm_kwd=personalizer-pro-addon&mtm_medium=wp-repo&mtm_source=premium">PRO addon</a>.

### How many persona can I create?

As you need!

Just keep in mind that to many choices can be confusing for visitors, but you will handle it.
## Changelog

### 1.3.2

- Fix undefined var warning
- Remove deprecated FILTER_SANITIZE_STRING

### 1.3.1

- Update dependencies
- Tested up to 7.0
- Track Matomo event throw J

### 1.3.0

- Track persona events in Matomo if available

### 1.2.1

- Add `personalizer_personas_from_post` filter
- Fix deprecated import (devs only)

### 1.2.0

- Fix duplicate CSS rules
- Add `personalizer_sanitize_settings` hook
- Use BloCSS library for CSS generation

### 1.1.0

- Ensure primary color is different of secondary one
- Clean rewrite slug
- Flush permalinks when persona is edited

### 1.0.0

Initial release
