Created
January 31, 2019 10:38
-
-
Save ridhamdholakia/c09fa62a1106efef25045ad991c00157 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function job_applicants(){ | |
$labels = array( | |
'view_item' => __( 'View Applicant', 'text_domain' ), | |
'add_new_item' => __( 'Add New Applicant', 'text_domain' ), | |
'add_new' => __( 'Add New Applicant', 'text_domain' ), | |
'edit_item' => __( 'Edit Applicant', 'text_domain' ), | |
'update_item' => __( 'Update Applicant', 'text_domain' ), | |
'search_items' => __( 'Search Applicant', 'text_domain' ), | |
'not_found' => __( 'Not found', 'text_domain' ), | |
'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ), | |
); | |
$args_applicants = array( | |
'label' => 'Job Applicants', | |
'labels' => $labels, | |
'description' => sprintf(esc_html__('List of %s with their resume.')), | |
'public' => FALSE, | |
'exclude_from_search' => FALSE, | |
'publicly_queryable' => FALSE, | |
'show_ui' => TRUE, | |
'show_in_menu' => 'edit.php?post_type=jobboard', | |
'show_in_nav_menus' => FALSE, | |
'menu_icon' => 'dashicons-clipboard', | |
'supports' => array('title', 'editor', 'author', 'thumbnail', 'custom-fields', 'comments', 'revisions'), | |
'can_export' => TRUE, | |
'has_archive' => TRUE, | |
'exclude_from_search' => FALSE, | |
'publicly_queryable' => TRUE, | |
'capability_type' => 'page', | |
'capabilities' => array( | |
'create_posts' => TRUE, | |
), | |
'map_meta_cap' => TRUE, | |
'hierarchical' => FALSE, | |
); | |
register_post_type("jobboard_applicants", $args_applicants); | |
} | |
add_action( 'init', 'job_applicants', 0 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment