Support » Plugin: Dynamic Conditions » Accessing data in user meta nested array

  • Hi,

    Enjoying the plugin. I was wondering if there is a way to access the data stored in a array in a user’s meta data. Specifically I need to access data in an array called wp_capabilities. Here’s an example diagram for the data structure:

    [user_meta_data] => Array
    (
        [wp_capabilities] => Array
            (
                [0] => a:2:{s5:"role1";b:1;s:5:"role2";b:1;}
            )
    )

    I need to content to show if this wp_capabilities contains either “role1” or “role2”.

    I’ve tried using contains for either role, and I’ve tried using in_array and added both text values to no avail. Any ideas?

    • This topic was modified 2 months, 3 weeks ago by danielticchnl.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.