Last active
March 17, 2018 18:05
-
-
Save xnau/75a6287b9f5819235ac35785ab495dcd to your computer and use it in GitHub Desktop.
Shows how to place the single record link on multiple fields in a Participants Database list display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* add fields to the single record links | |
* | |
* @param array $fields the defined single record fields | |
* @return array | |
*/ | |
function xnau_set_single_record_link_fields( $fields ) { | |
return array_merge( $fields, array( 'first_name','last_name','photo' ) ); | |
} | |
add_filter( 'pdb-single_record_link_field', 'xnau_set_single_record_link_fields' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment