Songbook
OpenLP/SNE songbook
// Register Custom Post Type function song_post_type() { $labels = array( 'name' => _x( 'Songs', 'Post Type General Name', 'songbook_domain' ), 'singular_name' => _x( 'Song', 'Post Type Singular Name', 'songbook_domain' ), 'menu_name' => __( 'Song Types', 'songbook_domain' ), 'name_admin_bar' => __( 'Song Type', 'songbook_domain' ), 'archives' => __( 'Song Archives', 'songbook_domain' ), 'attributes' => __( 'Song Attributes', 'songbook_domain' ), 'parent_item_colon' => __( 'Parent Song:', 'songbook_domain' ), 'all_items' => __( 'All Songs', 'songbook_domain' ), 'add_new_item' => __( 'Add New Song', 'songbook_domain' ), 'add_new' => __( 'Add New', 'songbook_domain' ), 'new_item' => __( 'New Song', 'songbook_domain' ), 'edit_item' => __( 'Edit Song', 'songbook_domain' ), 'update_item' => __( 'Update Song', 'songbook_domain' ), 'view_item' => __( 'View Song', 'songbook_domain' ), 'view_items' => __( 'View Songs', 'songbook_domain' ), 'search_items' => __( 'Search Song', 'songbook_domain' ), 'not_found' => __( 'Not found', 'songbook_domain' ), 'not_found_in_trash' => __( 'Not found in Trash', 'songbook_domain' ), 'featured_image' => __( 'Featured Image', 'songbook_domain' ), 'set_featured_image' => __( 'Set featured image', 'songbook_domain' ), 'remove_featured_image' => __( 'Remove featured image', 'songbook_domain' ), 'use_featured_image' => __( 'Use as featured image', 'songbook_domain' ), 'insert_into_item' => __( 'Insert into song', 'songbook_domain' ), 'uploaded_to_this_item' => __( 'Uploaded to this song', 'songbook_domain' ), 'items_list' => __( 'Songs list', 'songbook_domain' ), 'items_list_navigation' => __( 'Songs list navigation', 'songbook_domain' ), 'filter_items_list' => __( 'Filter songs list', 'songbook_domain' ), ); $args = array( 'label' => __( 'Song', 'songbook_domain' ), 'description' => __( 'Post Type Description', 'songbook_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'revisions', 'custom-fields' ), 'taxonomies' => array( 'category', 'post_tag', 'songbook' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-media-audio', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => 'songbook', 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', 'show_in_rest' => true, ); register_post_type( 'song_type', $args ); } add_action( 'init', 'song_post_type', 0 );