Pet Owners
if ( ! function_exists('cpt_pet_owner') ) {
// Register Custom Post Type
function cpt_pet_owner() {
$labels = array(
'name' => _x( 'Pet Owners', 'Post Type General Name', 'f4d' ),
'singular_name' => _x( 'Pet Owner', 'Post Type Singular Name', 'f4d' ),
'menu_name' => __( 'Pet Owners', 'f4d' ),
'name_admin_bar' => __( 'Pet Owners', 'f4d' ),
'parent_item_colon' => __( '', 'f4d' ),
'all_items' => __( 'All Pet Owners', 'f4d' ),
'add_new_item' => __( 'Add New Pet Owner', 'f4d' ),
'add_new' => __( 'Add New Pet Owner', 'f4d' ),
'new_item' => __( 'New Pet Owner', 'f4d' ),
'edit_item' => __( 'Edit Pet Owner', 'f4d' ),
'update_item' => __( 'Update Pet Owner', 'f4d' ),
'view_item' => __( 'View Pet Owner', 'f4d' ),
'search_items' => __( 'Search Pet Owners', 'f4d' ),
'not_found' => __( 'Pet Owner Not found', 'f4d' ),
'not_found_in_trash' => __( 'Pet Owner Not Found in Trash', 'f4d' ),
);
$args = array(
'label' => __( 'Pet Owner', 'f4d' ),
'description' => __( 'Custom Post Type For Pet Owners', '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-businessman',
'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( 'pet_owner', $args );
}
add_action( 'init', 'cpt_pet_owner', 0 );
}