3ev Core Wordpress library API
  • Namespace
  • Function

Namespaces

  • Tev
    • Application
      • Bootstrap
    • Author
      • Model
    • Contracts
    • Database
      • CustomTables
    • Field
      • Model
      • Util
    • Plugin
      • Action
      • Shortcode
    • Post
      • Model
      • Repository
    • Taxonomy
      • Model
      • Repository
    • Term
      • Model
      • Repository
    • Util
    • View
      • Exception
  • None

Functions

  • tev_app
  • tev_fetch
  • tev_partial
  • tev_post_factory
  • tev_post_factory_register

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

Tev\Post\Model\AbstractPost Post entity

Thrown exceptions summary

Exception If $base is not given and not in the The Loop
3ev Core Wordpress library API API documentation generated by ApiGen