Procedures
if ( ! function_exists('procedures_post_type') ) {
// Register Custom Post Type
function procedures_post_type() {
$labels = array(
'name' => 'Procedures',
'singular_name' => 'Procedure',
'menu_name' => 'Procedures',
'name_admin_bar' => 'Procedures',
'parent_item_colon' => 'Parent Procedure:',
'all_items' => 'All Procedures',
'add_new_item' => 'Add New Procedure',
'add_new' => 'Add New',
'new_item' => 'New Procedure',
'edit_item' => 'Edit Procedure',
'update_item' => 'Update Procedure',
'view_item' => 'View Procedure',
'search_items' => 'Search Procedures',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
);
$args = array(
'label' => 'Procedure',
'description' => 'Description of the various procedures. ',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 20,
'menu_icon' => 'dashicons-clipboard',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'procedures', $args );
}
add_action( 'init', 'procedures_post_type', 0 );
}