CC Sichern
// Register Custom Post Type
function cc_sichern_post() {
$labels = array(
'name' => _x( 'Bestände', 'Post Type General Name', 'cc_sichern' ),
'singular_name' => _x( 'Bestand', 'Post Type Singular Name', 'cc_sichern' ),
'menu_name' => __( 'Sichern', 'cc_sichern' ),
'parent_item_colon' => __( 'Parent Item:', 'cc_sichern' ),
'all_items' => __( 'Bestände', 'cc_sichern' ),
'view_item' => __( 'Anzeigen', 'cc_sichern' ),
'add_new_item' => __( 'Neu', 'cc_sichern' ),
'add_new' => __( 'Hinzufügen', 'cc_sichern' ),
'edit_item' => __( 'Bearbeiten', 'cc_sichern' ),
'update_item' => __( 'Update Item', 'cc_sichern' ),
'search_items' => __( 'Search Item', 'cc_sichern' ),
'not_found' => __( 'Not found', 'cc_sichern' ),
'not_found_in_trash' => __( 'Not found in Trash', 'cc_sichern' ),
);
$args = array(
'label' => __( 'cc_ausstellen', 'cc_sichern' ),
'description' => __( 'Sichern', 'cc_sichern' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 20,
'menu_icon' => '',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'cc_ausstellen', $args );
}
// Hook into the 'init' action
add_action( 'init', 'cc_sichern_post', 0 );