Vendor extends Controller

Manages vendors.

Table of Contents

$routes  : array<string|int, mixed>
Controller routes.
__construct()  : mixed
Class constructor.
get_routes()  : array<string|int, mixed>
Gets controller routes.
get_vendor_view_title()  : string
Gets vendor view title.
get_vendor_view_url()  : string
Gets vendor view URL.
get_vendors()  : WP_Rest_Response
Gets vendors.
get_vendors_view_url()  : string
Gets vendors view URL.
is_vendor_view_page()  : bool
Matches vendor view URL.
is_vendors_view_page()  : bool
Matches vendors view URL.
redirect_vendor_register_complete_page()  : mixed
Redirects vendor register complete page.
redirect_vendor_register_page()  : mixed
Redirects vendor register page.
redirect_vendor_register_profile_page()  : mixed
Redirects vendor register profile page.
redirect_vendors_view_page()  : mixed
Redirects vendors view page.
render_vendor_register_profile_page()  : string
Renders vendor register profile page.
render_vendor_view_page()  : string
Renders vendor view page.
render_vendors_view_page()  : string
Renders vendors view page.
boot()  : mixed
Bootstraps controller properties.
set_property()  : mixed
Sets a property value.

Properties

Methods

__construct()

Class constructor.

public __construct([array<string|int, mixed> $args = [] ]) : mixed
Parameters
$args : array<string|int, mixed> = []

Controller arguments.

Return values
mixed

get_vendor_view_url()

Gets vendor view URL.

public get_vendor_view_url(array<string|int, mixed> $params) : string
Parameters
$params : array<string|int, mixed>

URL parameters.

Return values
string

get_vendors()

Gets vendors.

public get_vendors(WP_REST_Request $request) : WP_Rest_Response
Parameters
$request : WP_REST_Request

API request.

Return values
WP_Rest_Response

get_vendors_view_url()

Gets vendors view URL.

public get_vendors_view_url(array<string|int, mixed> $params) : string
Parameters
$params : array<string|int, mixed>

URL parameters.

Return values
string

redirect_vendor_register_complete_page()

Redirects vendor register complete page.

public redirect_vendor_register_complete_page() : mixed
Return values
mixed

redirect_vendor_register_profile_page()

Redirects vendor register profile page.

public redirect_vendor_register_profile_page() : mixed
Return values
mixed

render_vendor_register_profile_page()

Renders vendor register profile page.

public render_vendor_register_profile_page() : string
Return values
string

set_property()

Sets a property value.

protected final set_property(string $name, mixed $value[, string $prefix = '' ]) : mixed
Parameters
$name : string

Property name.

$value : mixed

Property value.

$prefix : string = ''

Method prefix.

Return values
mixed