PHP Класс Timber\Integrations\CoAuthorsPlus

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$prefer_gravatar

Открытые методы

Метод Описание
__construct ( )
authors ( array $author, Post $post ) : array Filters {{ post.authors }} to return authors stored from Co-Authors Plus

Защищенные методы

Метод Описание
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

Описание методов

__construct() публичный метод

public __construct ( )

authors() публичный метод

Filters {{ post.authors }} to return authors stored from Co-Authors Plus
С версии: 1.1.4
public authors ( array $author, Post $post ) : array
$author array
$post Post
Результат array of User objects

get_user_uid() защищенный метод

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
Результат integer | string | null

Описание свойств

$prefer_gravatar публичное статическое свойство

public static $prefer_gravatar