Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    The plugin itself has no login, so this would only work for WP users that were logged in. You would create a custom template for your list. (how to do that is explained here) Then you check if the user is logged in and add your edit column if they are. This is real easy if you add the column at the end of the row.

    Just before the </tr></thead> tags, put this:

    <?php if ( is_user_logged_in() ) echo '<th>Edit</th>'; ?>

    Now, just before the first endwhile; put something like this:

    <?php
    if ( is_user_logged_in() ) {
       $participant = Participants_Db::get_participant($this->record->record_id);
       echo '<td><a href="/record/?pid=' . $participant['private_id'] . '" >Click</a></td>';
    }
    ?>

    Where “/record/” is the link to the page with the [pdb_record] shortcode on it.

    Thread Starter bmcconach

    (@bmcconach)

    Thank you again for getting back to me!

    Worked like a charm!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Edit Link For Admins?’ is closed to new replies.