Properties

$jobs_per_page

$jobs_per_page : int

Type

normal

$query_args

$query_args : array

Type

normal

$search

$search : string

Type

normal

$company_name_meta

$company_name_meta : string

Type

normal

Methods

__construct()

__construct() : mixed

Jobs constructor.

Returns

mixed

init_variables()

init_variables() : mixed

Init variables

Returns

mixed

change_where_posts()

change_where_posts(string  $where) : string

Replace 'WHERE' by the searching request

Parameters

string $where

Returns

string

set_search()

set_search(string  $search) : string

Set class search variable

Parameters

string $search

Returns

string

change_meta_sql()

change_meta_sql(array  $sql) : array

Change mySQL meta query join attribute for search by the company name

Parameters

array $sql

Array containing the query's JOIN and WHERE clauses.

Returns

array

relevance_search()

relevance_search(string  $search_orderby, \WP_Query  $query) : string

Searching by relevance

Parameters

string $search_orderby
\WP_Query $query

Returns

string

get_jobs()

get_jobs() : mixed

AJAX response for getting jobs

Returns

mixed

count_jobs()

count_jobs(mixed  $term_id) : mixed

Parameters

mixed $term_id

Returns

mixed

get_categories()

get_categories() : mixed

Getting Job Categories Tree

Returns

mixed

delete_job()

delete_job() : mixed

AJAX handler for job delete

Returns

mixed

fill_job()

fill_job() : mixed

AJAX handler for making a job filled

Returns

mixed

unfill_job()

unfill_job() : mixed

AJAX handler for making a job unfilled

Returns

mixed

get_job_data()

get_job_data(\WP_Post  $job_post) : array

Prepare job data for AJAX response

Parameters

\WP_Post $job_post

Returns

array

get_employer_jobs()

get_employer_jobs() : mixed

AJAX handler for getting employer's jobs

Returns

mixed

calculate_pagination()

calculate_pagination(int  $total_jobs) : array

Get data array for pagination

Parameters

int $total_jobs

Returns

array

validate_job()

validate_job() : mixed

AJAX handler for validate job data on save through wp-admin editor

Returns

mixed