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_register

Register a new post type to class name mapping.

Located at helpers.php

Parameters summary

string $postType Post type identifier
string $className <p>Class name to instantiate for $postType. Class must inherit from <code>\Tev\Post\Model\AbstractPost</code></p>

Thrown exceptions summary

Exception If class name does not inherit from \Tev\Post\Model\AbstractPost
3ev Core Wordpress library API API documentation generated by ApiGen