Firing WordPress hook when user role is updated in code

前端 未结 0 1192
青春惊慌失措
青春惊慌失措 2020-12-11 00:14

I am trying to fire an event every time a users role has changed. So far I got this:

add_action( \'set_user_role\', function( $user_id, $role, $old_roles )
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题