3ev Core Wordpress library API
  • Namespace
  • Class

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

Classes

  • Factory

Class Factory

Author entity factory.

Allows for easy instantiation of author entity objects.

Namespace: Tev\Author
Located at Tev/Author/Factory.php

Methods summary

public Tev\Author\Model\Author
# create( integer $id = null )

Create an author from a Wordpress user ID.

Create an author from a Wordpress user ID.

If in the loop and $id is omitted, will attempt to get the current post author.

Parameters

$id
Optional. User ID. Will use ID from The Loop if omitted

Returns

Tev\Author\Model\Author
Create author

Throws

Exception
If $id not supplied and not within the loop
3ev Core Wordpress library API API documentation generated by ApiGen