Developers

Post

Whenever you're dealing with a post in your template, you're actually working with a Post object.

Properties

id

Type: int|null

ID of the post.

accountId

Type: int|null

The account ID this post was made from.

ownerId

Type: int|null

The entry ID this post was made on.

ownerSiteId

Type: int|null

The site ID this post was made on.

owner

Type: ActiveQuery

Entry (opens new window) this post was made on.

ownerType

Type: string|null

The class name of the element this post was made on.

settings

Type: array|null

Serialized content that was used to send out this post.

success

Type: bool|null

Boolean whether the post was successfully sent to social media platforms.

response

Type: array|null

A short response from the social media provider.

data

Type: array|null

A full response from the social media provider.

Methods

getAccount()

Returns: verbb\socialposter\base\AccountInterface|null

Returns the account this post was made from.