Skip to content

Instantly share code, notes, and snippets.

@ringmaster
Created April 13, 2012 13:47
Show Gist options
  • Save ringmaster/2376966 to your computer and use it in GitHub Desktop.
Save ringmaster/2376966 to your computer and use it in GitHub Desktop.
Allow $post to have $post->client_contact
public function filter_post_client_contact($client, $post)
{
if(intval($post->info->client_contact) != 0) {
$client = User::get($post->info->client_contact);
}
return $client;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment