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
$routes
Controller routes.
protected
array<string|int, mixed>
$routes
= []
Methods
__construct()
Class constructor.
public
__construct([array<string|int, mixed> $args = [] ]) : mixed
Parameters
- $args : array<string|int, mixed> = []
-
Controller arguments.
Return values
mixed —get_routes()
Gets controller routes.
public
final get_routes() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_vendor_view_title()
Gets vendor view title.
public
get_vendor_view_title() : string
Return values
string —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 —is_vendor_view_page()
Matches vendor view URL.
public
is_vendor_view_page() : bool
Return values
bool —is_vendors_view_page()
Matches vendors view URL.
public
is_vendors_view_page() : bool
Return values
bool —redirect_vendor_register_complete_page()
Redirects vendor register complete page.
public
redirect_vendor_register_complete_page() : mixed
Return values
mixed —redirect_vendor_register_page()
Redirects vendor register page.
public
redirect_vendor_register_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 —redirect_vendors_view_page()
Redirects vendors view page.
public
redirect_vendors_view_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 —render_vendor_view_page()
Renders vendor view page.
public
render_vendor_view_page() : string
Return values
string —render_vendors_view_page()
Renders vendors view page.
public
render_vendors_view_page() : string
Return values
string —boot()
Bootstraps controller properties.
protected
boot() : mixed
Return values
mixed —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.