Conditional activities to show based on PHP function

Conditional activities to show based on PHP function

by Deleted user -
Number of replies: 1
hey All,

is it possible to hide/show a activity based on a PHP function that returns TRUE or FALSE?

I am in the situation that a activity can only be shown when a users ID (actually email address) is found in a special table. If the user is found on this special table, I need to show a link with a specific activity,
or else hide it.

Roles won't work for well for me in this case, unless I dynamically add/remove users from specific roles.

Ries
Average of ratings: -
In reply to Deleted user

Re: Conditional activities to show based on PHP function

by Mike Churchward -
Picture of Core developers Picture of Plugin developers Picture of Testers
You could use groupings to do this. With groupings, you can make an activity visible only to the groups in that grouping. Then your problem becomes one of putting users into groups/groupings based on their email addresses.

mike