• slowturtle

    (@slowturtle)


    Hi,
    I am trying to remove email confirmation when a new user joins the website so that the user not pending, but active. How do i do that as i did not find anything on the web.

Viewing 9 replies - 1 through 9 (of 9 total)
  • sc00t

    (@sc00t)

    Add the following to your functions.php file:

    add_filter( 'wpmu_signup_user_notification', '__return_false' );

    You can read more here: https://developer.www.ads-software.com/reference/functions/wpmu_signup_user_notification/

    • This reply was modified 2 years ago by sc00t.
    Thread Starter slowturtle

    (@slowturtle)

    I still get You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address

    And when i try to login it says
    You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address

    I am trying to get rid of this step of activating by clicking the link from the email.
    I want a user to register and start using the website right away.

    Moderator bcworkz

    (@bcworkz)

    Such a message does not appear in core translation files, so I think the default message had been altered by one of your themes or plugins. In any case, as long as a message passes through the gettext translation system, you can use the “gettext” filter to alter messages passing through the system. If you hook the filter with a large enough $priority arg, you can overrule any other alterations done by themes or plugins.

    I believe the default messages are defined here:
    https://core.trac.www.ads-software.com/browser/trunk/src/wp-signup.php#L687

    Thread Starter slowturtle

    (@slowturtle)

    I use the generatepress theme. I have loginpress, wordfence, woocommerce, loginizer and buddypress plugins.
    I don’t know how to do that. If you can help me with a more concrete solution like, copy this here, i would be very happy.

    Thread Starter slowturtle

    (@slowturtle)

    Is there nobody who can help me?

    Moderator bcworkz

    (@bcworkz)

    Sorry for the slow reply, I’ve been traveling. Examples of using gettext filter are near the bottom of the doc page in the user notes.

    You would need to substitute in the strings actually used for your situation. Previously I linked to the code where I believe the original “untranslated” English strings are defined. The first of several being:
    '%s is your new username'

    Instead of targeting the original English, you could instead target the modified text, the “translation” even though it’s still English. Since it’s in several parts and you don’t know where they separate, you’d need to dump out all strings passing through the filter and find the ones you need to target and alter. To limit the amount of data to sift through, you could add the filter from another action hook that fires close to when the message is output.

    Thread Starter slowturtle

    (@slowturtle)

    i don’t know how to do that.

    Moderator bcworkz

    (@bcworkz)

    A complete solution is likely more effort than what most forum members here are willing to freely provide. If you don’t already know of someone with the requisite skills, you could hire some professional help through sites like https://jobs.wordpress.net/ or https://jetpack.pro/. This topic remains open on the chance someone else might want to jump in with a solution, but don’t get your hopes up.

    Thread Starter slowturtle

    (@slowturtle)

    i thought this was a walk in the park for professionals like you guys. i did not know it is this hard. i guess this is why i did not find any solutions on the web. thank you anyway for the help and i apologize.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Remove email confirmation for new users’ is closed to new replies.