WeBloom – Podcast
CPT Podcast for WeBloom
if ( ! function_exists('webloom_cpt_podcast') ) { // Register Custom Post Type function webloom_cpt_podcast() { $labels = array( 'name' => _x( 'Podcasts', 'Post Type General Name', 'cpt_podcast_text' ), 'singular_name' => _x( 'Podcast', 'Post Type Singular Name', 'cpt_podcast_text' ), 'menu_name' => __( 'Podcasts', 'cpt_podcast_text' ), 'name_admin_bar' => __( 'Podcasts', 'cpt_podcast_text' ), 'archives' => __( 'Archive Podcast', 'cpt_podcast_text' ), 'attributes' => __( 'Attribut Podcast', 'cpt_podcast_text' ), 'parent_item_colon' => __( 'Parent Podcast', 'cpt_podcast_text' ), 'all_items' => __( 'Tous les Podcasts', 'cpt_podcast_text' ), 'add_new_item' => __( 'Ajouter un Podcast', 'cpt_podcast_text' ), 'add_new' => __( 'Ajouter Podcast', 'cpt_podcast_text' ), 'new_item' => __( 'Ajouter Podcast', 'cpt_podcast_text' ), 'edit_item' => __( 'Edit Podcast', 'cpt_podcast_text' ), 'update_item' => __( 'Mettre à jour Podcast', 'cpt_podcast_text' ), 'view_item' => __( 'Voir Podcast', 'cpt_podcast_text' ), 'view_items' => __( 'Voir Podcasts', 'cpt_podcast_text' ), 'search_items' => __( 'Chercher un Podcast', 'cpt_podcast_text' ), 'not_found' => __( 'Pas trouvé', 'cpt_podcast_text' ), 'not_found_in_trash' => __( 'Pas trouvé dans la corbeille', 'cpt_podcast_text' ), 'featured_image' => __( 'Image du Podcast', 'cpt_podcast_text' ), 'set_featured_image' => __( 'Définr une image Podcast', 'cpt_podcast_text' ), 'remove_featured_image' => __( 'Supprimer image Podcast', 'cpt_podcast_text' ), 'use_featured_image' => __( 'Utiliser comme image Podcast', 'cpt_podcast_text' ), 'insert_into_item' => __( 'Insérer dans le Podcast', 'cpt_podcast_text' ), 'uploaded_to_this_item' => __( 'Uploader à ce Podcast', 'cpt_podcast_text' ), 'items_list' => __( 'Podcasts liste', 'cpt_podcast_text' ), 'items_list_navigation' => __( 'Podcast liste de navigation', 'cpt_podcast_text' ), 'filter_items_list' => __( 'Filtrer Podcasts liste', 'cpt_podcast_text' ), ); $args = array( 'label' => __( 'Podcast', 'cpt_podcast_text' ), 'description' => __( 'Les Podcats WeBloom', 'cpt_podcast_text' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-microphone', '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( 'podcast-webloom', $args ); } add_action( 'init', 'webloom_cpt_podcast', 0 ); }