Hello,
for testing reasons I have written a little piece of php code for using in a personal plug-in:
----
add_event_handler('check_status', 'change_access_type');
function change_access_type($access_type, $user_status = '')
{
echo "Hello World";
}
----
check_status is a function in functions_user_inc.php
Why doesn't it work? At least it should produce an error message ... :-)
I'm an absolute php beginner, but nevertheless I hope someone here can help me or at least give a feedback.
Greetings
Werner
Offline
Hi,
you can't add an event_handler to a function, only to registered events and actions
for a full list of availables events check this http://piwigo.us/dev/mistic100/triggers … s_list.php
Offline