Skip to main content

Username Reservation Feature Inquiry

I'm wondering if there's a feature or best practice for reserving specific usernames on a FluentCommunity. Ideally, I’d like to set up a list of reserved usernames on the backendβ€”so if a user tries to register with one of those names (e.g., "admin", "support", or any custom name we want to protect), the system will prompt them to choose a different one.

Mat β€Ž

Pakey DevΒ please see this link

add_filter('fluent_community/reserved_usernames', function ($nams) {
            $reserved = ['notion','asana', 'trello'];
            return array_merge($nams, $reserved);
        });

Ross FCA

Mat β€ŽΒ This is the answer. If you're not familiar with adding snippets Pakey DevΒ Fluent Snippets is a great plugin from jewel that does it all for you.

Prosper

Hi Ross FCA what is the difference between using FluentSnippets and using the "customization" settings page of FC ("You can write your custom CSS here for the portal. Please do not include tag") ?Β 

WiLson Eberechi

ProsperΒ you can't paste hooks(add filters, add action, do shortcodes, etc), codes, etc on FC customisation.

FC customisation accepts only CSS and Js, the hook you see above is a php hook so you'll place it in any code snippets or your function.php

+1