regisiter_admin_bar() regisiter_admin_bar(\WP_Admin_Bar $adminbar) Register admin bars Parameters \WP_Admin_Bar $adminbar
get_message_box() get_message_box(mixed $user_id, int $oldest) : array Get message Parameters mixed $user_id int $oldest Returns array
send_message() send_message(int $user_id, bool $body, int $from, string $subject) : bool Save message Parameters int $user_id bool $body int $from string $subject Returns bool
get_instance() get_instance(array $argument) : self Get instance Parameters array $argument Returns self
nonce_action() nonce_action(string $action) : string Return nonce name with prefix Parameters string $action Returns string
nonce_field() nonce_field(string $action, bool $referrer) Alias of wp_nonce_field Parameters string $action bool $referrer Default false.
verify_nonce() verify_nonce(string $action, string $referrer) : boolean Check nonce Parameters string $action string $referrer Returns boolean
is_ssl_required() is_ssl_required() : boolean Returns if login is forced to use SSL. To override it, use filter gianism_force_ssl_login Returns boolean
is_enabled() is_enabled(string $service) : bool Determine if service is enabled. Parameters string $service If not specified, one of the services are enabled, return true. Returns bool
get_meta_owner() get_meta_owner(string $key, string $value) : int Retrieve user meta's owner ID Parameters string $key string $value Returns int — User ID. If not exists, return 0
get_service_instance() get_service_instance(string $service) : null|\Gianism\Service\Common\Mail Get service instance Parameters string $service Returns null|\Gianism\Service\Common\Mail
add_message() add_message(string $string, bool $error) Add message to show Parameters string $string bool $error
wp_die() wp_die(string $message, int $status_code, bool $return) Short hand for wp_die Parameters string $message int $status_code bool $return
session_write() session_write(string $key, mixed $value) Write session Parameters string $key mixed $value
session_get() session_get(string $key) : bool Get session After get, session key will be deleted. Parameters string $key Returns bool
render_message() render_message(\stdClass $message) : string Render chat list Parameters \stdClass $message Returns string
message_count() message_count(int $user_id) : int Returns message count Parameters int $user_id Returns int
raw_message_count() raw_message_count(int $user_id) : int Return raw data of message count Parameters int $user_id Returns int