Post Type “Danke”
für Jahr der Dankbarkeit
if ( ! function_exists('jdd_danke') ) { // Register Custom Post Type function jdd_danke() { $labels = array( 'name' => _x( 'Danke', 'Post Type General Name', 'tatanof' ), 'singular_name' => _x( 'Danke', 'Post Type Singular Name', 'tatanof' ), 'menu_name' => __( 'Danke', 'tatanof' ), 'name_admin_bar' => __( 'Danke', 'tatanof' ), 'parent_item_colon' => __( 'Parent Danke:', 'tatanof' ), 'all_items' => __( 'All Danke', 'tatanof' ), 'add_new_item' => __( 'Add New Danke', 'tatanof' ), 'add_new' => __( 'New Danke', 'tatanof' ), 'new_item' => __( 'New Danke', 'tatanof' ), 'edit_item' => __( 'Edit Danke', 'tatanof' ), 'update_item' => __( 'Update Danke', 'tatanof' ), 'view_item' => __( 'View Danke', 'tatanof' ), 'search_items' => __( 'Search Danke', 'tatanof' ), 'not_found' => __( 'No Danke found', 'tatanof' ), 'not_found_in_trash' => __( 'No Danke found in Trash', 'tatanof' ), ); $args = array( 'label' => __( 'Danke', 'tatanof' ), 'description' => __( 'Danke für Jahr der Dankbarkeit', 'tatanof' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'custom-fields', 'post-formats', ), 'taxonomies' => array( 'category', 'post_tag', 'danke' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-smiley', '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' => 'post', ); register_post_type( 'Danke', $args ); } // Hook into the 'init' action add_action( 'init', 'jdd_danke', 0 ); }