Skip to content

Plugin compatibility other plugins #4

@webketje

Description

@webketje

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions