• Resolved Msam85

    (@msam85)


    Hi, I need to perform some actions when a new role is created (or cloned) in the plugin. Is there any hook to use to be able to execute some custom code?
    I see there is a hook do_action( ‘members_role_updated’, $this->role->name );

    but I’m not sure if this will work when a new role is created.

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Caseproof

    (@caseproof)

    Hi @msam85

    There are two hooks for creating and updating role in Members Role editor:

    members_role_updated action hook for when a role is edited/updated
    members_role_added action hook for when a new role is created

    I hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Hook trigger when a new role is created’ is closed to new replies.