Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
MasterPress last then first name
// put this in functions.php
class MY_User extends MEOW_User {
function last_then_first_name() {
return $this->last_name() . ", " . $this->first_name();
// now in your template:
foreach ($wf->users->by("last_then_first_name") as $user) {
// do something with $user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment