• Resolved Isu

    (@isuke01)


    Hey,

    I like the plugin so far, it is simple etc.
    BUT! https://userswp.io/docs/developers/ is like nothing
    And I have couple of needs like:
    – How I add custom account tab with custom fields?
    – How I can remove some of existing tabs (like notifictions)
    – How to remove Avatar and background image support
    – How to disable/remove profile page (I’dont need it)
    – How to manually Activate user from Super admin level (WP-admin)
    – I cant remove pages from Page settings (I dont need some of those) Dropdown force me to select ate least one page.
    – Remove require first and last name during registration
    – How I can hook into register user action?
    – Limited Email Registrations Option does not take any effect :/

    If there is any documenations that have some more info I’d love to see it Thanks.

    • This topic was modified 3 years, 7 months ago by Isu.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    – You can use ‘uwp_account_available_tabs’ filter to add new tab and use ‘uwp_account_form_display’ hook to display the content in the tab.
    – You can use the same ‘uwp_account_form_display’ to unset any tab you want to remove.
    – You will have to override the template file and remove code from there that you don’t want to show. You can get a guide at https://userswp.io/docs/developers/override-templates/ to override the template.
    – You can use our Moderation addon https://userswp.io/downloads/moderate-user-registration/ to manually approve the user after registration.
    – Those are the required pages for our plugin to work properly. You can put the page in the draft/trash and resave the setting to remove it.
    – You can edit the custom field from UsersWP->Form Builder and uncheck the “Is required” option.
    – You can use ‘uwp_after_process_register’ hook for that.
    – Can you explain a bit more about this last point?

    Regards,
    Patrik

    Thread Starter Isu

    (@isuke01)

    Thanks you for fast replay ??
    – My Bad I can just delete those last name and first name fields from registration.

    – Last one: thing is, I have multisite setup, in multisite setting you can set Limited Email Registrations in network settings, in short it is field where you put list of domain (in new lines) that are “whitelisted” to register with. I belive it is because this plugin uses different reigstration logic? Since I saw Hook registration_errors is not called too.

    Thing is I have multisite setup.
    – Users can register only on main page. (Main page admin can approve or decline user)
    – But on sub blog pages (different domain based) Admins can add whitelisted registration domains for page.
    So during registration I need to grab setting from ALL PAGES, and use e.g registration_errors and check if new user email domain is whitelisted on ANY of sub pages. That is alos a reason why I asked about how to manually accept user, since I’ll need sme extra logic there ?? I need hook like before registeration user ??

    • This reply was modified 3 years, 7 months ago by Isu.
    • This reply was modified 3 years, 7 months ago by Isu.
    Thread Starter Isu

    (@isuke01)

    Edit:
    Also I noticed it is impossible to login using email address, this is base feature in wordpress :/

    Hi,

    – To edit the fields you need to do it from the Account form builder and not from the registration form builder.

    – We will have to look into this. You can check the process_register() method in class-forms.php for the hooks you need. For validation, you can use ‘uwp_validate_result’ filter.

    – You can log in with the username and email both. Let me know what error you see. Also, make sure there are no restrictions by other plugins or security plugins.

    Regards,
    Patrik

    Thread Starter Isu

    (@isuke01)

    Hi,

    About my login issue:
    I think I missed one thing when I did tests. Yes it is possible to login via email.
    Sorry.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Development questions’ is closed to new replies.