Support » Plugin: User Access Manager » Draw out pages for a user group

  • Hi, I would like to draw out all pages that are assigned to the current user’s user group.

    Unfortunately I can’t even draw anything from that table. Could someone please take a look at my query?

    global $wpdb;
    $table = $wpdb->prefix . ‘uam_accessgroup_to_object’;
    $results = $wpdb->get_var(“SELECT object_id FROM $table”);
    if ( $results ) {
    foreach ( $results as $result ) {

  • The topic ‘Draw out pages for a user group’ is closed to new replies.