• Resolved Morten

    (@ballemortenballenet)


    Hi.
    How can I run an action – via functions.php – targeted to users which are assigned to specific usergroup..?

    like:
    if member-of ‘B”B then….

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

    (@proaktion)

    Hi,

    In the Examples section of the documentation under the heading “Does the current user belong to the Foobar group?” you can see a code example for this case.

    You can try that code out directly in our theme’s functions.php – make sure to use a Child Theme and not the original theme to avoid your custom code getting overwritten when the parent theme is updated.

    The example uses the group name Foobar, of course you can use any group name of an existing group on your site instead.

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Run action if user is member of specific group.’ is closed to new replies.