Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action('init', 'ccd_clients');
- function ccd_clients() {
- $labels = array(
- 'name' => _x('Clients', 'post type general name'),
- 'singular_name' => _x('Client', 'post type singular name'),
- 'add_new' => _x('Add New', 'ccd_portfolio item'),
- 'add_new_item' => __('Add New Client'),
- 'edit_item' => __('Edit Client'),
- 'new_item' => __('New Client'),
- 'view_item' => __('View Client'),
- 'search_items' => __('Search Clients'),
- 'not_found' => __('Nothing found'),
- 'not_found_in_trash' => __('Nothing found in Trash'),
- 'parent_item_colon' => ''
- );
- $args = array(
- 'labels' => $labels,
- 'public' => true,
- 'publicly_queryable' => true,
- 'show_ui' => true,
- 'query_var' => true,
- 'menu_icon' => get_stylesheet_directory_uri() . '/images/icons/plugins/clients.png',
- 'capability_type' => 'post',
- 'hierarchical' => false,
- 'menu_position' => null,
- 'supports' => array('title', 'editor', 'excerpt'),
- 'can_export' => true,
- 'show_in_menu' => true,
- 'has_archive' => false
- );
- register_post_type( 'clients' , $args );
- flush_rewrite_rules();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment