FAMs
if ( ! function_exists('fam') ) {
// Register Custom Post Type
function fam() {
$labels = array(
'name' => _x( 'FAMs', 'Post Type General Name', 'o2dca_select' ),
'singular_name' => _x( 'FAM', 'Post Type Singular Name', 'o2dca_select' ),
'menu_name' => __( 'FAMs', 'o2dca_select' ),
'name_admin_bar' => __( 'FAM', 'o2dca_select' ),
'archives' => __( 'FAM Archives', 'o2dca_select' ),
'attributes' => __( 'FAM Attributes', 'o2dca_select' ),
'parent_item_colon' => __( 'Parent FAM:', 'o2dca_select' ),
'all_items' => __( 'All FAMs', 'o2dca_select' ),
'add_new_item' => __( 'Add New FAM', 'o2dca_select' ),
'add_new' => __( 'Add New', 'o2dca_select' ),
'new_item' => __( 'New FAM', 'o2dca_select' ),
'edit_item' => __( 'Edit FAM', 'o2dca_select' ),
'update_item' => __( 'Update FAM', 'o2dca_select' ),
'view_item' => __( 'View FAM', 'o2dca_select' ),
'view_items' => __( 'View FAMs', 'o2dca_select' ),
'search_items' => __( 'Search FAM', 'o2dca_select' ),
'not_found' => __( 'Not found', 'o2dca_select' ),
'not_found_in_trash' => __( 'Not found in Trash', 'o2dca_select' ),
'featured_image' => __( 'Featured Image', 'o2dca_select' ),
'set_featured_image' => __( 'Set featured image', 'o2dca_select' ),
'remove_featured_image' => __( 'Remove featured image', 'o2dca_select' ),
'use_featured_image' => __( 'Use as featured image', 'o2dca_select' ),
'insert_into_item' => __( 'Insert into FAM', 'o2dca_select' ),
'uploaded_to_this_item' => __( 'Uploaded to this FAM', 'o2dca_select' ),
'items_list' => __( 'FAMs list', 'o2dca_select' ),
'items_list_navigation' => __( 'FAMs list navigation', 'o2dca_select' ),
'filter_items_list' => __( 'Filter FAMs list', 'o2dca_select' ),
);
$args = array(
'label' => __( 'FAM', 'o2dca_select' ),
'description' => __( 'FAM Trips', 'o2dca_select' ),
'labels' => $labels,
'supports' => array( 'title', 'editor' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-palmtree',
'show_in_admin_bar' => true,
'show_in_nav_menus' => false,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'fam', $args );
}
add_action( 'init', 'fam', 0 );
}