WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
[resolved] How to lock user on registration (3 posts)

  1. charliebrimm
    Member
    Posted 1 year ago #

    Before upgrading I was using $GLOBALS['theme_my_login_security']->lock_user( $user ); to lock a user upon registration so that their account could be verfied. After upgrading to 6.3.8 I get an error PHP Fatal error: Call to undefined function lock_user()

    How would I go about calling that method now since it seems some things have changed?

    Thanks!

    http://wordpress.org/extend/plugins/theme-my-login/

  2. Jeff Farthing
    Member
    Plugin Author

    Posted 1 year ago #

    Theme_My_Login_Security::get_object()->lock_user( $user );

    Just an FYI, this will change again in 6.4.

  3. charliebrimm
    Member
    Posted 1 year ago #

    Works great. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic