Hi,
I'm developing GS Custom Settings plugin and want to make this compatible with Multi User; however Multi User overwrites all GS hooks, eg settings-user (which I used to write to the user file).
In settings-user hook, one has access to the globals $datau, $xml, and I could execute it simply like here.
This can be solved by adding a plugin hook to Multi User, any plugin dev could then simply do the following in his plugin file:
add_action('mu-user-save', 'myfunction');
function myfunction() {
global $datau, $xml;
$xml->addChild('someNode');
}
Please refer to my commit
Hi,
I'm developing GS Custom Settings plugin and want to make this compatible with Multi User; however Multi User overwrites all GS hooks, eg
settings-user(which I used to write to the user file).In
settings-userhook, one has access to the globals$datau, $xml, and I could execute it simply like here.This can be solved by adding a plugin hook to Multi User, any plugin dev could then simply do the following in his plugin file:
Please refer to my commit