PHP Class Timber\Integrations\CoAuthorsPlus

Mostrar archivo Open project: jarednova/timber

Public Properties

Property Type Description
$prefer_gravatar

Public Methods

Method Description
__construct ( )
authors ( array $author, Post $post ) : array Filters {{ post.authors }} to return authors stored from Co-Authors Plus

Protected Methods

Method Description
get_user_uid ( object $cauthor ) : integer | string | null return the user id for normal authors the user login for guest authors if it exists and self::prefer_users == true or null

Method Details

__construct() public method

public __construct ( )

authors() public method

Filters {{ post.authors }} to return authors stored from Co-Authors Plus
Since: 1.1.4
public authors ( array $author, Post $post ) : array
$author array
$post Post
return array of User objects

get_user_uid() protected method

return the user id for normal authors the user login for guest authors if it exists and self::prefer_users == true or null
protected get_user_uid ( object $cauthor ) : integer | string | null
$cauthor object
return integer | string | null

Property Details

$prefer_gravatar public_oe static_oe property

public static $prefer_gravatar