• Resolved uwiuw

    (@uwiuw)


    Right now, i try to make a popup windows every time a member login. I need to show particular information on the popup window everytime login attempt succesful. I try to add meta user info which has value true everytime the popup show. So the popop only show once on login session.

    Now, i need help. I need to delete the metadata or chage its value into FALSE everytime any member login. how do i do that (before set_current_user hook) ?

    I need to know when is the current_user->ID has value. or how do i retrieve username / password ? so i can use this code

    global $wpdb;
    $user = $wpdb->get_row($wpdb->prepare(“SELECT * FROM $wpdb->users WHERE user_login = %s AND user_pass = %s”, $name, $pass));

    i hope i don’t confuse you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter uwiuw

    (@uwiuw)

    maybe this going to help : i try to custom wordpress dashboard. And i need to show pop up after a member do a login

    after the login, i need to set a value on their profile meta

    Thread Starter uwiuw

    (@uwiuw)

    i have done some code in ‘set_current_user’ and it work

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Which hook/action/filter show User ID of current user’ is closed to new replies.