wipa_company_links
// Register Custom Post Type
function wipa_company_links() {
$labels = array(
'name' => _x( 'Projekte', 'Post Type General Name', 'wipa' ),
'singular_name' => _x( 'Projekt', 'Post Type Singular Name', 'wipa' ),
'menu_name' => __( 'Projekte', 'wipa' ),
'parent_item_colon' => __( 'Angezeigtes Projekt:', 'wipa' ),
'all_items' => __( 'All Projekte', 'wipa' ),
'view_item' => __( 'Projekt anzeigen', 'wipa' ),
'add_new_item' => __( 'Neues Projekt hinzufügen', 'wipa' ),
'add_new' => __( 'Projekt hinzufügen', 'wipa' ),
'edit_item' => __( 'Projekt bearbeiten', 'wipa' ),
'update_item' => __( 'Projekt aktualisieren', 'wipa' ),
'search_items' => __( 'Projekt suchen', 'wipa' ),
'not_found' => __( 'Kein Projekt gefunden', 'wipa' ),
'not_found_in_trash' => __( 'Im Papierkorb wurde kein Projekt gefunden', 'wipa' ),
);
$args = array(
'label' => __( 'wipa_company_links', 'wipa' ),
'description' => __( 'Mieter Verknüpfungen', 'wipa' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'author', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 5,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'wipa_company_links', $args );
}
// Hook into the 'init' action
add_action( 'init', 'wipa_company_links', 0 );