Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 9 Years, 11 Months, 3 Weeks ago When does the $plugins->run_hooks fire it's instance?
#1
Solved: 9 Years, 11 Months, 3 Weeks ago
Hello,

I got a question regarding the usage of hooks, i need to know how and when hooks are kicked into action, can a admin hook be used if a user isn't logged in? Or do they only work if a super user is recognized with a active session?

Furthermore,

I would like to use the admin_user_users_edit hook within a function called in a file outside mybb to change some user data on the $_POST method.

$plugins->run_hooks('admin_user_users_edit');

How do i reach a specific field, e.g if i only wish to edit the username of a user, how do i do? and what code may i use?

Let me know, i appreciate any help or advice given here.
Thanks.


Messages In This Thread
When does the $plugins->run_hooks fire it's instance? - by bowkilled - 2012-07-07, 03:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)