Trouble with user_register hook (2 posts)

  1. btwpuser
    Posted 4 years ago #


    I'm trying to develop a small plugin, I have some test code written but it's not working as expected.

    Here is my test code:

    add_action(‘user_register’, ‘modify_user_info_GMP’, 10, 1);
    function modify_user_info_GMP( $user_id )  {
    	update_user_meta( $user_id, 'first_name', 'First1' );
    	update_user_meta( $user_id, 'last_name', 'Last1');

    According to my understanding of the docs this should work, but it doesn't. I've tried testing with a delay() as well and it looks like this function never gets called. The plugin file calls other hooks that work just fine.

    Any ideas?

    using WP v 3.1.3

  2. ZenixSol
    Posted 3 years ago #

    did you find any solution to your problem? I am having same issue.

Topic Closed

This topic has been closed to new replies.

About this Topic