Skip to main content

Posts

Vasyl MartyniukLess than 1 minute

Definition

class AAM_Framework_Service_Posts {

    public is_hidden_on(mixed $post_identifier, string $website_area) : bool
    public is_hidden(mixed $post_identifier) : bool
    public is_password_protected(mixed $post_identifier) : bool
    public is_restricted(mixed $post_identifier) : bool
    public is_redirected(mixed $post_identifier) : bool
    public is_teaser_message_set(mixed $post_identifier) : bool
    public is_denied_to(mixed $post_identifier, string $permission) : bool
    public is_allowed_to(mixed $post_identifier, string $permission) : bool
    public is_access_expired(mixed $post_identifier) : bool

    public set_password(mixed $post_identifier, string $password, bool $exclude_authors = false) : bool
    public set_teaser_message(mixed $post_identifier, string $message, bool $exclude_authors = false) : bool
    public set_redirect(mixed $post_identifier, array $redirect, bool $exclude_authors = false) : bool
    public set_expiration(mixed $post_identifier, int $timestamp, bool $exclude_authors = false) : bool

    public deny(mixed $post_identifier, string|array $permission, bool $exclude_authors = false) : bool
    public allow(mixed $post_identifier, string|array $permission) : bool
    public hide(mixed $post_identifier, string|array $website_area = null, bool $exclude_authors = false) : bool
    public show(mixed $post_identifier, string|array $website_area = null) : bool

    public get_password(mixed $post_identifier) : string|null
    public get_teaser_message(mixed $post_identifier) : string|null
    public get_redirect(mixed $post_identifier) : array|null
    public get_expiration(mixed $post_identifier) : int|null

}
Virtual Assistant