Skip to main content

Terms

Vasyl MartyniukLess than 1 minute

Definition

class AAM_Framework_Service_Terms {

    public is_hidden_on(mixed $term_identifier, string $website_area) : bool
    public is_hidden(mixed $term_identifier) : bool
    public is_denied_to(mixed $term_identifier, string $permission) : bool
    public is_allowed_to(mixed $term_identifier, string $permission) : bool

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

    // If terms service initialized with post_type scope, these additional methods
    // are available
    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_access_expired(mixed $post_identifier) : bool

    public set_password(mixed $post_identifier, string $password) : bool
    public set_teaser_message(mixed $post_identifier, string $message) : bool
    public set_redirect(mixed $post_identifier, array $redirect) : bool
    public set_expiration(mixed $post_identifier, int $timestamp) : 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