• Resolved patrickbln

    (@patrickbln)


    Hi,

    thanks for this small tool, i have a question before using it tho…
    I wrote a small function which add some stuff to the DB with the users ID when he registers:

    add_action( ‘user_register’, ‘PHIT_createbbbroom’, 10, 1 );
    function PHIT_createbbbroom( $user_id )
    {
    //do stuff here, insert $user_id to custom post type meta
    }

    will this hook work with your plugin? I mean does it fire after the new user id was created?

    Kind regards
    Patrick

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter patrickbln

    (@patrickbln)

    to clarify: i am aware that it will only work for newly registered users tho, thats ok 🙂

    Plugin Author David Marín Carreño

    (@davefx)

    Yes. The plugin calculates and sets the user ID before the new row is inserted into the users table, so any user_id received through the action user_register would already be randomized.

    Plugin Author David Marín Carreño

    (@davefx)

    Marking question as resolved

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Does it work wit user_register?’ is closed to new replies.