Function tev_post_factory
Instantiate a post entity from a given post object.
Located at
helpers.php
Parameters summary
WP_Post |
$base = null |
<p>Optional. Base post object. If not supplied will attempt to get the current post from The Loop</p> |
string |
$className = null |
<p>Optional. Class name to instantiate. Will use registered default if not supplied</p> |
Return value summary
|
Post entity |
Thrown exceptions summary
Exception
|
If $base is not given and not in the The Loop |