Telco CPT
if ( ! function_exists('tecAudits_telcoUSC') ) {
// Register Custom Post Type
function tecAudits_telcoUSC() {
$labels = array(
'name' => _x( 'US Cellular Audits', 'Post Type General Name', 'tecEN-US' ),
'singular_name' => _x( 'US Cellular Audit', 'Post Type Singular Name', 'tecEN-US' ),
'menu_name' => __( 'US Cellular', 'tecEN-US' ),
'name_admin_bar' => __( 'US Cellular Audit', 'tecEN-US' ),
'archives' => __( 'Audit Archives', 'tecEN-US' ),
'attributes' => __( 'Audit Attributes', 'tecEN-US' ),
'parent_item_colon' => __( 'Parent Audit:', 'tecEN-US' ),
'all_items' => __( 'All Audits', 'tecEN-US' ),
'add_new_item' => __( 'Add New Audit', 'tecEN-US' ),
'add_new' => __( 'Add New Audit', 'tecEN-US' ),
'new_item' => __( 'New Audit', 'tecEN-US' ),
'edit_item' => __( 'Edit Audit', 'tecEN-US' ),
'update_item' => __( 'Update Audit', 'tecEN-US' ),
'view_item' => __( 'View Audit', 'tecEN-US' ),
'view_items' => __( 'View Audits', 'tecEN-US' ),
'search_items' => __( 'Search Audit', 'tecEN-US' ),
'not_found' => __( 'Audit not found', 'tecEN-US' ),
'not_found_in_trash' => __( 'Audit not found in trash', 'tecEN-US' ),
'featured_image' => __( 'Cover Image', 'tecEN-US' ),
'set_featured_image' => __( 'Set cover image', 'tecEN-US' ),
'remove_featured_image' => __( 'Remove cover image', 'tecEN-US' ),
'use_featured_image' => __( 'Use as cover image', 'tecEN-US' ),
'insert_into_item' => __( 'Insert into audit', 'tecEN-US' ),
'uploaded_to_this_item' => __( 'Uploaded to this audit', 'tecEN-US' ),
'items_list' => __( 'Audits list', 'tecEN-US' ),
'items_list_navigation' => __( 'Audits list navigation', 'tecEN-US' ),
'filter_items_list' => __( 'Filter audits list', 'tecEN-US' ),
);
$args = array(
'label' => __( 'US Cellular Audit', 'tecEN-US' ),
'description' => __( 'Tectonic CPT for Telco and US Cellular.', 'tecEN-US' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-clipboard',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => 'tecTelco_auditUSC_Archive',
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'post',
);
register_post_type( 'tecTelco_audits_USC', $args );
}
add_action( 'init', 'tecAudits_telcoUSC', 0 );
}