[ 'name' => __( 'StreamCast' ), 'singular_name' => __( 'StreamCast' ), 'add_new' => __( 'Add New Radio Player' ), 'add_new_item' => __( 'Add New Radio Player' ), 'edit_item' => __( 'Edit Radio' ), 'new_item' => __( 'New Radio' ), 'view_item' => __( 'View Portfolio' ), 'search_items' => __( 'Search Portfolio' ), 'not_found' => __( 'Sorry, we couldn\'t find the Portfolio you are looking for.' ), ], 'public' => false, 'show_ui' => true, 'publicly_queryable' => true, 'exclude_from_search' => true, 'menu_position' => 14, 'menu_icon' => 'dashicons-microphone', 'has_archive' => false, 'hierarchical' => false, 'capability_type' => 'page', 'rewrite' => [ 'slug' => 'behance' ], 'supports' => [ 'title' ], ]); } public function change_publish_button_text( $translation, $original ) { global $post; if ( is_admin() && $post && $post->post_type === 'streamcast' ) { if ( $original === 'Publish' ) return 'Save'; if ( $original === 'Update' ) return 'Updated'; } return $translation; } public function custom_updated_message( $messages ) { global $post; if ( $post->post_type === 'streamcast' ) { $messages['streamcast'][1] = __('Updated', 'streamcast'); } return $messages; } public function remove_row_actions( $actions ) { global $post; if ( $post->post_type === 'streamcast' ) { unset( $actions['view'] ); unset( $actions['inline hide-if-no-js'] ); } return $actions; } public function hide_publishing_actions() { global $post; if ( $post && $post->post_type === 'streamcast' ) { echo ''; } } public function manage_columns( $columns ) { unset($columns['date']); $columns['shortcode'] = 'Shortcode'; $columns['date'] = 'Date'; return $columns; } public function manage_custom_columns( $column_name, $post_ID ) { if ( $column_name === 'shortcode' ) { echo '
Copy To Clipboard
'; } } public function shortcode_area() { global $post; if ( $post->post_type == 'streamcast' ) { ?>

[radio_player id='ID); ?>']

<?php echo do_shortcode('[radio_player id="ID); ?>"]'); ?>