Created
February 10, 2015 21:08
-
-
Save isotrope/0623ce0ff1336e101eb8 to your computer and use it in GitHub Desktop.
selected( $selected, $current, $echo);
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 | |
/** | |
* selected( $selected, $current, $echo); | |
* | |
* http://codex.wordpress.org/Function_Reference/selected | |
*/ | |
foreach ( $users as $user ) { | |
echo '<option value="' . $user->id . '" ' . selected( $prop_photographe, $user->ID, false ) . '>' . $user->data->display_name . '</option>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment