Methods

display_types()

display_types(int  $job_id) : string

Render job types layout

Parameters

int $job_id

Returns

string

calculate_expiry()

calculate_expiry() : string

Calculates and returns the job expiry date.

Returns

string

get_expiry_date()

get_expiry_date(int  $job_id) : string

Returns the job expiry date.

Parameters

int $job_id

Job post ID

Returns

string

get_expiry_date_raw()

get_expiry_date_raw(int  $job_id) : string

Returns the job's raw expiry date.

Parameters

int $job_id

Job post ID

Returns

string

get_posted_date()

get_posted_date(int  $job_id) : string

Returns the job posted date.

Parameters

int $job_id

Job post ID

Returns

string

get_html_datetime()

get_html_datetime(int  $job_id) : string

Returns the job expiry date.

Parameters

int $job_id

Job post ID

Returns

string

get_job_category()

get_job_category(int  $job_id) : string

Returns the job category.

Parameters

int $job_id

Job post ID

Returns

string

get_job_author()

get_job_author(int  $job_id) : string

Returns the job author.

Parameters

int $job_id

Job post ID

Returns

string

get_location_type()

get_location_type(int  $job_id, bool  $raw = false) : string

Returns the job location type.

Parameters

int $job_id

Job post ID

bool $raw

RAW or formatted location

Returns

string

get_location_data()

get_location_data(int  $job_id) : string

Returns the job location data.

Parameters

int $job_id

Job post ID

Returns

string

get_location()

get_location(int  $job_id, bool  $raw = false) : string

Returns the job location.

Parameters

int $job_id

Job post ID

bool $raw

RAW or formatted location

Returns

string

get_location_link()

get_location_link(int  $job_id) : string

Get location link

Parameters

int $job_id

Returns

string

get_company()

get_company(int  $job_id) : string

Returns the job company.

Parameters

int $job_id

Job post ID

Returns

string

get_company_data()

get_company_data(int  $job_id) : array

Build job's company data

Parameters

int $job_id

Returns

array

get_logo()

get_logo(int  $job_id, bool  $raw = false) : string

Get job logo

Parameters

int $job_id
bool $raw

Returns

string

get_status()

get_status(int  $job_id) : string

Returns the job status.

Parameters

int $job_id

Job post ID

Returns

string

is_filled()

is_filled(int  $job_id) : bool

Is job filled?

Parameters

int $job_id

Returns

bool

is_featured()

is_featured(int  $job_id) : bool

Is job featured?

Parameters

int $job_id

Returns

bool

is_expired()

is_expired(int  $job_id) : bool

Is job expired?

Parameters

int $job_id

Returns

bool

can_applied()

can_applied(int  $job_id) : bool

Can job be applied?

Parameters

int $job_id

Returns

bool

get_formatted_salary()

get_formatted_salary(int  $job_id) : string

Getting formatted job salary.

Parameters

int $job_id

Job ID.

Returns

string —

Formatted salary string. Empty string in the case when invalid salary data in meta

get_maximum_salary()

get_maximum_salary() : int

Returns

int

get_raw_data()

get_raw_data(int  $job_id) : array|bool

Get job RAW data

Parameters

int $job_id

Returns

array|bool

get_actions()

get_actions(int|\WP_Post|array  $job) : array

Get job actions

Parameters

int|\WP_Post|array $job

Returns

array

get_preview_link()

get_preview_link( $job_id) : string

Get job preview link

Parameters

$job_id

Returns

string

get_edit_link()

get_edit_link(int  $job_id, null|string  $base_url = null) : string

Get job edit link

Parameters

int $job_id
null|string $base_url

Returns

string

get_structured_data()

get_structured_data(int|\WP_Post|array  $job) : array|bool

Get job's structured data for schema.org

Parameters

int|\WP_Post|array $job

Returns

array|bool

get_structured_location()

get_structured_location(\WP_Post  $job) : array|bool

Gets the job location data.

Parameters

\WP_Post $job

Returns

array|bool

get_templates()

get_templates() : array

Get Templates

Returns

array

get_template_name()

get_template_name(string  $file) : string

Get File Name without path and extension

Parameters

string $file

Returns

string

check_for_expired_jobs()

check_for_expired_jobs() : mixed

Maintenance task to expire jobs.

Returns

mixed

check_for_reminder_expired_jobs()

check_for_reminder_expired_jobs() : mixed

Maintenance task to send expiration reminders jobs.

Returns

mixed

delete_old_previews()

delete_old_previews() : mixed

Deletes old previewed jobs to keep the DB clean.

Returns

mixed

sanitize_location_data()

sanitize_location_data( $data) : array|mixed|object

Make location data secured after the response from GoogleMaps API

Parameters

$data

Returns

array|mixed|object

map_deep()

map_deep( $value,  $callback, null|string  $key = null) : array|mixed|object

See the function's reference documented in wp-includes/formatting.php -> map_deep() Passed $key for getting different sanitizing in the callback

Parameters

$value
$callback
null|string $key

Returns

array|mixed|object

sanitize_location_data_cb()

sanitize_location_data_cb(mixed  $value, null|string  $key = null) : float|int|string

Sanitize Location Data response

Parameters

mixed $value
null|string $key

Returns

float|int|string

validate_url()

validate_url(string  $url) : bool

Validate URL string

Parameters

string $url

Returns

bool

prepare_categories_options()

prepare_categories_options(array  $terms, array  $children, int  $parent_id, int  $level) : array

Recursive function for building categories tree

Parameters

array $terms
array $children

Terms hierarchy

int $parent_id
int $level

Returns

array

approve_job()

approve_job(\WP_Post|array  $job) : bool

Parameters

\WP_Post|array $job

Returns

bool