WP Job Openings
  • Introduction
  • Getting Started
    • Installation
    • Shortcodes
  • Pro Pack for Wp Job Openings
    • WP Job Openings Pro
    • Installation
  • Overview
    • Job Openings Overview
  • Settings
    • General
    • Appearance
    • Job Specifications
    • Form
    • Notifications
  • Settings - Wp Job Openings Pro
    • Appearance
    • Job Specifications
    • Form
    • Notifications
    • Shortcodes
    • Advanced
  • Job Listing
    • Add New Openings
    • Job Listings
    • Job Listings – Admin
    • Customizing templates of your Job Listings
  • Applications
    • Application Listings
    • View Application
    • Spam Protection
  • EXPORT (PRO)
    • Export Applications
  • Widgets
    • Recent Jobs Widget
    • Job Overview Dashboard Widget
  • User Access Control Addon
    • User Access Control Add-on
    • Installation
    • Settings
    • Tutorial
  • JOB ALERTS ADDON
    • Job Alerts Add-on
      • How it works
      • Job Alerts Block
      • Job Alerts Emails
    • Installation
    • Settings
      • Appearance
      • Shortcode Generator
      • Email Settings
  • Other Add-ons
    • Docs Viewer Add-On for WP Job Openings
    • Auto Delete Applications – Add-on for WP Job Openings
  • Developers
    • Hooks
      • Actions
        • Application Actions
        • Application Details
        • Application Form
        • Application Submission
        • Email
        • Job Expiry
        • Job Listing
        • Job Specifications
        • Job Status
        • Settings
        • Widget - Recent Jobs
      • Filters
        • Application Form
        • Email
        • Job Filter
        • Job Specifications
        • Layout
        • Meta Data
        • Navigation
        • Post Type
        • Query
        • Settings
        • Shortcode
        • Structured Data
    • Code Snippets
      • Archive page title
      • Custom Application Status
      • Custom Permalink - Slug Issue
      • Limit the file size
      • Modify or Remove the Structured Data
      • Remove 'All' prefix from the filter
      • Remove job application form
      • Sort by title
    • WP-CLI
      • Managing Form Builder Options
    • CRM Integration
  • FAQ
  • Sources and Credits
Powered by GitBook
On this page

Was this helpful?

  1. Developers
  2. Code Snippets

Custom Application Status

PreviousArchive page titleNextCustom Permalink - Slug Issue

Last updated 4 years ago

Was this helpful?

Code snippet for customizing the application status

Important Note: Once you set a custom status, manipulating these statuses may result in unintended results. For example, you won't be able to access some of the applications. So, please use this with caution.

function awsm_jobs_pro_custom_application_status( $status ) {
	/**
	 * Example: Update an existing status.
	 */
	$status['select'] =  array(
		'label'       => _x( 'Hired', 'post status', 'pro-pack-for-wp-job-openings' ),
		/* translators: %s: posts count */
		'label_count' => _n_noop( 'Hired <span class="count">(%s)</span>', 'Hired <span class="count">(%s)</span>', 'pro-pack-for-wp-job-openings' ),
	);

	/**
	 * Example: Add a new status.
	 */
	$status['interview'] = array(
		'label'       => _x( 'Interview', 'post status', 'pro-pack-for-wp-job-openings' ),
		'label_count' => _n_noop( 'Interview <span class="count">(%s)</span>', 'Interview <span class="count">(%s)</span>', 'pro-pack-for-wp-job-openings' ),
	);
	
	return $status;
}
add_filter( 'awsm_jobs_pro_application_status', 'awsm_jobs_pro_custom_application_status' );

How to Easily Add Custom Code to Your WordPress Websites