Skip to main content

Timeline for get_user_meta and umeta_id

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
Mar 14, 2017 at 16:20 comment added Paul 'Sparrow Hawk' Biron @kiarashi sorry, I didn't see your comment until now. No, you should be using the function update_user_meta(), not the filter. The reason I added the discussion on the filters was that IF you hooked into the update_user_meta action and expected it to be fired the first time update_user_meta() was called you'd be disappointed...you have to hook into add_user_meta action as well. But you don't need to hook into either of those actions...that discussion only applies IF you hook into ...
Mar 12, 2017 at 8:48 comment added kiarashi So instead of using wp_head, it's better to use add_action( 'updated_user_meta', 'my_update_user_meta', 10, 4 );?
Mar 12, 2017 at 8:42 vote accept kiarashi
Mar 11, 2017 at 23:39 history edited Paul 'Sparrow Hawk' Biron CC BY-SA 3.0
added additional detail about add vs update_meta hooks
Mar 11, 2017 at 23:22 history answered Paul 'Sparrow Hawk' Biron CC BY-SA 3.0