Costume Post Type definieren
// Change CPT Title
function revcon_change_post_label() {
global $menu;
global $submenu;
$menu[5][0] = 'Ideen Blog';
$submenu['edit.php'][5][0] = 'Ideen Blog';
$submenu['edit.php'][10][0] = 'Idee hinzufügen';
$submenu['edit.php'][16][0] = 'Schlagworte';
}
function revcon_change_post_object() {
global $wp_post_types;
$labels = &$wp_post_types['post']->labels;
$labels->name = 'Ideen Blog';
$labels->singular_name = 'Idee';
$labels->add_new = 'Idee hinzufügen';
$labels->add_new_item = 'Neue Idee hinzufügen';
$labels->edit_item = 'Idee bearbeiten';
$labels->new_item = 'Ideen Blog';
$labels->view_item = 'Ideen ansehen';
$labels->search_items = 'Ideen durchsuchen';
$labels->not_found = 'Keine Idee gefunden';
$labels->not_found_in_trash = 'Keine Idee im Papierkorb gefunden';
$labels->all_items = 'Alle Ideen';
$labels->menu_name = 'Ideen Blog';
$labels->name_admin_bar = 'Ideen Blog';
}
add_action( 'admin_menu', 'revcon_change_post_label' );
add_action( 'init', 'revcon_change_post_object' );