PetFile
if ( ! function_exists('cpt_petfile') ) {
// Register Custom Post Type
function cpt_petfile() {
$labels = array(
'name' => _x( 'PetFiles', 'Post Type General Name', 'f4d' ),
'singular_name' => _x( 'PetFile', 'Post Type Singular Name', 'f4d' ),
'menu_name' => __( 'PetFiles', 'f4d' ),
'name_admin_bar' => __( 'PetFiles', 'f4d' ),
'parent_item_colon' => __( 'Pet Owners', 'f4d' ),
'all_items' => __( 'All PetFiles', 'f4d' ),
'add_new_item' => __( 'Add New PetFile', 'f4d' ),
'add_new' => __( 'Add New PetFile', 'f4d' ),
'new_item' => __( 'New PetFile', 'f4d' ),
'edit_item' => __( 'Edit PetFile', 'f4d' ),
'update_item' => __( 'Update PetFile', 'f4d' ),
'view_item' => __( 'View PetFile', 'f4d' ),
'search_items' => __( 'Search PetFiles', 'f4d' ),
'not_found' => __( 'PetFile Not found', 'f4d' ),
'not_found_in_trash' => __( 'PetFile Not Found in Trash', 'f4d' ),
);
$args = array(
'label' => __( 'PetFile', 'f4d' ),
'description' => __( 'Custom Post Type For PetFiles', 'f4d' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes', ),
'taxonomies' => array( 'gpo_app_cats' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 20,
'menu_icon' => 'dashicons-clipboard',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'post',
);
register_post_type( 'petfile', $args );
}
add_action( 'init', 'cpt_petfile', 0 );
}