\jb\commonPermalinks

Class Permalinks

Summary

Methods
Properties
Constants
__construct()
verify_username_password()
login_failed()
get_slug()
predefined_page_slug_exists()
get_predefined_page_id()
is_predefined_page()
get_predefined_page_link()
are_pages_installed()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : mixed

Permalinks constructor.

Returns

mixed

verify_username_password()

verify_username_password(mixed  $user, string  $username, string  $password) : \WP_Error

Verifies username and password. Redirects visitor to the login page with login empty status if eather username or password is empty.

Parameters

mixed $user
string $username
string $password

Returns

\WP_Error

login_failed()

login_failed(string  $username, \WP_Error  $error = null) : void

Redirects visitor to the login page with login failed status.

Parameters

string $username

Username or email address.

\WP_Error $error

A WP_Error object with the authentication failure details.

get_slug()

get_slug(string  $key) : string

Get page slug

Parameters

string $key

Pre-set page key

Returns

string

predefined_page_slug_exists()

predefined_page_slug_exists(string  $slug) : bool

Parameters

string $slug

Returns

bool

get_predefined_page_id()

get_predefined_page_id(string  $slug) : bool|int

Get predefined page ID

Parameters

string $slug

Returns

bool|int

is_predefined_page()

is_predefined_page(string  $slug, null|int|\WP_Post|array  $post = null) : bool

Parameters

string $slug
null|int|\WP_Post|array $post

Returns

bool

get_predefined_page_link()

get_predefined_page_link(string  $slug) : bool|string

Get predefined page URL

Parameters

string $slug

Returns

bool|string

are_pages_installed()

are_pages_installed() : bool

Are JB pages installed

Returns

bool