\jb\frontendActions_Listener

Class Actions_Listener

Summary

Methods
Properties
Constants
__construct()
add_location_data()
maybe_create_user()
update_global_login_cookie()
actions_listener()
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

Actions_Listener constructor.

Returns

mixed

add_location_data()

add_location_data(array  $job_data) : array

Parse and save location data

Parameters

array $job_data

Returns

array

maybe_create_user()

maybe_create_user() : int|\WP_Error

Handle posting a job form and maybe create user if the form data is proper $_POST validation on form submission

Returns

int|\WP_Error

update_global_login_cookie()

update_global_login_cookie(string  $logged_in_cookie) : mixed

Allows for immediate access to the logged in cookie after mid-request login.

Parameters

string $logged_in_cookie

Logged in cookie.

Returns

mixed

actions_listener()

actions_listener() : mixed

Main frontend action listener

Returns

mixed