Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

application custom post type

// Register Custom Post Type
function application_post_type() {

	$labels = array(
		'name'                => _x( 'Applications', 'Post Type General Name', 'bst-plus' ),
		'singular_name'       => _x( 'Application', 'Post Type Singular Name', 'bst-plus' ),
		'menu_name'           => __( 'Applications', 'bst-plus' ),
		'parent_item_colon'   => __( 'Parent Application', 'bst-plus' ),
		'all_items'           => __( 'All applications', 'bst-plus' ),
		'view_item'           => __( 'View Application', 'bst-plus' ),
		'add_new_item'        => __( 'Add New Application', 'bst-plus' ),
		'add_new'             => __( 'Add Application', 'bst-plus' ),
		'edit_item'           => __( 'Edit Application', 'bst-plus' ),
		'update_item'         => __( 'Update Application', 'bst-plus' ),
		'search_items'        => __( 'Search Applications', 'bst-plus' ),
		'not_found'           => __( 'Not found', 'bst-plus' ),
		'not_found_in_trash'  => __( 'Not found in Trash', 'bst-plus' ),
	);
	$capabilities = array(
		'edit_post'           => 'edit_post',
		'read_post'           => 'read_post',
		'delete_post'         => 'delete_post',
		'edit_posts'          => 'edit_posts',
		'edit_others_posts'   => 'edit_others_posts',
		'publish_posts'       => 'publish_posts',
		'read_private_posts'  => 'read_private_posts',
	);
	$args = array(
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', ),
		'hierarchical'        => true,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 5,
		'menu_icon'           => 'dashicons-id',
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => true,
		'publicly_queryable'  => false,
		'rewrite'             => false,
		'capabilities'        => $capabilities,
	);
	register_post_type( 'application_post_type', $args );

}

// Hook into the 'init' action
add_action( 'init', 'application_post_type', 0 );