aamplugin / advanced-access-manager

WordPress Advanced Access Manager Plugin
Other
30 stars 14 forks source link

Allow the ability to chain method return value for Access Policy marker path #365

Closed aamplugin closed 3 months ago

aamplugin commented 3 months ago

Allow to use object's method to chain the path to marker's value. For example, lets say we have a global object $current_user that has a public method get_data. The method returns an array of key/value pairs, when you need to access "first_name" key.

The marker ${PHP_GLOBAL.current_user.get_data.first_name} will do the trick.