Title: tweaks for request_link
Last modified: July 23, 2019

---

# tweaks for request_link

 *  Resolved [vanmol](https://wordpress.org/support/users/vanmol/)
 * (@vanmol)
 * [7 years ago](https://wordpress.org/support/topic/tweaks-for-request_link/)
 * Dear Roland,
    1) for testing purposes I would like to send a requested link not
   to the email address that is part of the record, but to a ‘test email address’.
   This way I can test the setup without disturbing the users already in the database.
 * 2) the link in the email is //website/pdbrecord?pid=ABCDE. I would like to replace
   that with //website/pdblist?search_field=code&value=ABCDE. (code is an extra 
   field that I added, usually equal to private_id).
 * Could you point me in the direction where to look to make these things happen?
 * thanks in advance
    Peter van Mol

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [7 years ago](https://wordpress.org/support/topic/tweaks-for-request_link/#post-11761604)
 * Easiest way to test your private link recovery is to use a test record that uses
   an email address you control.
 * To add to the URL that is provided for the private link, you can use the _pdb-
   record\_edit\_url_ filter. It’s pretty simple, it just gets the full URL, you
   can easily tack your additional variable on at the end. (order of the variables
   doesn’t matter).
 *  Thread Starter [vanmol](https://wordpress.org/support/users/vanmol/)
 * (@vanmol)
 * [7 years ago](https://wordpress.org/support/topic/tweaks-for-request_link/#post-11764525)
 * Thx Roland,
    The reason I want to adapt the email address is that I want to test
   a few of the records that are already in the database (total ~700).
 * With your hint of record_edit_url filter I was able to solve my issues.
 * <?php
    add_action(‘pdb-before_send_retrieve_link_email’, ‘pdb_myemail’); function
   pdb_myemail ($s) { $s->recipient=’my@email.com’; return ($s); }
 * add_filter (‘pdb-record_edit_url’, ‘pdb_myurl’);
    function pdb_myurl($s) { $s
   =str_replace (“record”,”list”,$s); $s=str_replace (“pid”, “search_field=code&
   value”,$s); return ($s); } ?>

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘tweaks for request_link’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [vanmol](https://wordpress.org/support/users/vanmol/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/tweaks-for-request_link/#post-11764525)
 * Status: resolved