aggrosoft Posted January 27, 2017 Share Posted January 27, 2017 The LicensingAddonVerify Hook seems to have a weird behaviour, what I wanted to do is to override the status variable in the returned response. So I did something like this: <?php add_hook('LicensingAddonVerify', 1, function($vars) { return [ 'status' => 'Active' ]; }); But instead of overriding the old value he will return an array in the status key which holds both values: Array ( [status] => Array ( 'Expired', 'Active' ) ... ) Is there any way to get that to work? 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted January 27, 2017 Share Posted January 27, 2017 Not so sure the 'status' variable can be overwritten as it were. If you try adding variables to that (as in the example) , does that work? 0 Quote Link to comment Share on other sites More sharing options...
aggrosoft Posted January 30, 2017 Author Share Posted January 30, 2017 Yes, adding them works as it should. But why can't we just override the variables already in place? 0 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.