Created
November 11, 2018 09:31
-
-
Save davidmaneuver/82b768595262a95afedc1060c39d504c to your computer and use it in GitHub Desktop.
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 | |
namespace Example/Model; | |
class MyPost extends \Timber\Post { | |
public function full_name() { | |
// first_name and last_name could be ACF fields. | |
return "{$this->first_name} {$this->last_name}"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment