class_get_job_data

class_get_job_data  use to extract job metadata and information, there are many methods available to get each meta field data. you can use these to build theme job page templates or via 3rd party plugins.

Here is an example use

add_action('job_bm_single_job_main','job_bm_single_job_main_class');

function job_bm_single_job_main_class(){

    $job_id = get_the_id();
    $class_job_bm_job = new class_get_job_data($job_id);
    $value = $class_job_bm_job->get_total_vacancies();

    //echo $value;
    ?>
    <pre><?php echo var_export($value, true); ?></pre>
    <?php

}

 

Methods

get_total_vacancies()

Parameter: No parameter

Return: Integer

 

get_job_type()

Parameter: No parameter

Return: String

 

get_job_level()

Parameter: No parameter

Return: String

 

get_years_experience()

Parameter: No parameter

Return: String

 

get_salary_type()

Parameter: No parameter

Return: String

 

get_salary_fixed()

Parameter: No parameter

Return: Integer

 

get_salary_minimum()

Parameter: No parameter

Return: Integer

 

get_salary_maximum()

Parameter: No parameter

Return: Integer

 

get_salary_currency()

Parameter: No parameter

Return: String

 

get_contact_email()

Parameter: No parameter

Return: String

 

get_company_name()

Parameter: No parameter

Return: String

 

get_location()

Parameter: No parameter

Return: String

 

get_address()

Parameter: No parameter

Return: String

 

get_company_website()

Parameter: No parameter

Return: String

 

get_company_logo()

Parameter: No parameter

Return: String

 

is_featured()

Parameter: No parameter

Return: String

 

get_expire_date()

Parameter: No parameter

Return: String

 

get_tags($return = 'link', $separator = ',')

Parameter: 

  • Return Type: link, list, object. default: link
  • Separator: “,” default: “,”

Return: Mix(String, Object)

 

get_categories($return = 'link', $separator = ',')

Parameter: 

  • Return Type: link, list, object. default: link
  • Separator: “,” default: “,”

Return: Mix(String, Object)