PHP 클래스 Timber\Integrations\CoAuthorsPlus

파일 보기 프로젝트 열기: jarednova/timber

공개 프로퍼티들

프로퍼티 타입 설명
$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