hmaddy Posted May 31, 2023 Share Posted May 31, 2023 getting null value on execution of a hook add_hook('ClientAdd', 1, function($vars) { } variable $vars->client_id, variable $vars->user_id, variable $vars->userid, variable $vars->email. All these values are getting null value on hook execution. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted May 31, 2023 Share Posted May 31, 2023 $vars is not an object, it's an array. You need to do $vars['client_id'], $vars['user_id'] etc. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.