PHP Class Timber\Integrations\CoAuthorsPlus

Afficher le fichier Open project: jarednova/timber

Méthodes publiques

Свойство Type Description
$prefer_gravatar

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

public __construct ( )

authors() public méthode

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
Résultat array of User objects

get_user_uid() protected méthode

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
Résultat integer | string | null

Property Details

$prefer_gravatar public_oe static_oe property

public static $prefer_gravatar