[ 'name' => __('StreamCast', 'streamcast'), 'singular_name' => __('StreamCast', 'streamcast'), 'add_new' => __('Add New Radio Player', 'streamcast'), 'add_new_item' => __('Add New Radio Player', 'streamcast'), 'edit_item' => __('Edit Radio', 'streamcast'), 'new_item' => __('New Radio', 'streamcast'), 'view_item' => __('View Radio', 'streamcast'), 'all_items' => __('All Player', 'streamcast'), 'search_items' => __('Search Radio', 'streamcast'), 'not_found' => __('Sorry, we couldn\'t find the Radio you are looking for.', 'streamcast'), ], '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->post_type === 'streamcast') { $messages['streamcast'][1] = __('Updated', 'streamcast'); } return $messages; } public function remove_row_actions($actions) { global $post; if ($post && $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 '