Easy Work Space Clients
// Register Custom Post Type
function Easy_Clients() {
$labels = array(
'name' => 'Clients',
'singular_name' => 'Client',
'menu_name' => 'Clients',
'name_admin_bar' => 'Client',
'archives' => 'Clients Archives',
'attributes' => 'Clients Attributes',
'parent_item_colon' => 'Parent Client:',
'all_items' => 'All Clients',
'add_new_item' => 'Add New Client',
'add_new' => 'Add Client',
'new_item' => 'New Client',
'edit_item' => 'Edit Client',
'update_item' => 'Update Client',
'view_item' => 'View Client',
'view_items' => 'View Clients',
'search_items' => 'Search Client',
'not_found' => 'Client Not found',
'not_found_in_trash' => 'Client Not found in Trash',
'featured_image' => 'Featured Image',
'set_featured_image' => 'Set featured image',
'remove_featured_image' => 'Remove featured image',
'use_featured_image' => 'Use as featured image',
'insert_into_item' => 'Insert into Client',
'uploaded_to_this_item' => 'Uploaded to this Client',
'items_list' => 'Clients list',
'items_list_navigation' => 'Clients list navigation',
'filter_items_list' => 'Filter Clients list',
);
$rewrite = array(
'slug' => 'client',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => 'Client',
'description' => 'Easy Clients',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-admin-site',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'post',
);
register_post_type( 'easy_clients', $args );
}
add_action( 'init', 'Easy_Clients', 0 );