cpt_soundcloud_track
if ( ! function_exists('ctp_soundcloud_track') ) {
// Register Custom Post Type
function ctp_soundcloud_track() {
$labels = array(
'name' => 'Tracks',
'singular_name' => 'Track',
'menu_name' => 'SoundCloud Tracks',
'name_admin_bar' => 'SoundCloud Tracks',
'parent_item_colon' => '',
'all_items' => 'All Tracks',
'add_new_item' => 'Add New Track',
'add_new' => 'Add New',
'new_item' => 'New Track',
'edit_item' => 'Edit Track',
'update_item' => 'Update Track',
'view_item' => 'View Track',
'search_items' => 'Search Tracks',
'not_found' => 'Not Tracks Found',
'not_found_in_trash' => 'Not Tracks found in Trash',
);
$args = array(
'label' => 'track',
'description' => 'SoundCloud Tracks Management',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'revisions', ),
'taxonomies' => array( 'album', ' track_category', ' post_tag', 'location' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-format-audio',
'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( 'track', $args );
}
// Hook into the 'init' action
add_action( 'init', 'ctp_soundcloud_track', 0 );
}