/* Alapértelmezett WordPress 'Bejegyzés' átnevezése */ function revcon_change_post_label() { global $menu; global $submenu; $menu[5][0] = 'Blog'; $menu[5][6] = 'dashicons-format-status'; $submenu['edit.php'][5][0] = 'Összes blogbejegyzés'; $submenu['edit.php'][10][0] = 'Új bejegyzés írása'; //$submenu['edit.php'][16][0] = 'News Tags'; echo ''; } function revcon_change_post_object() { global $wp_post_types; $labels = &$wp_post_types['post']->labels; $labels->name = 'Blog'; $labels->singular_name = 'News'; $labels->add_new = 'Új bejegyzés írása'; $labels->add_new_item = 'Új bejegyzés írása'; $labels->edit_item = 'Edit News'; $labels->new_item = 'News'; $labels->view_item = 'View News'; $labels->search_items = 'Blogbejegyzés keresése'; //$labels->not_found = 'No News found'; //$labels->not_found_in_trash = 'No News found in Trash'; $labels->all_items = 'Összes blogbejegyzés'; $labels->menu_name = 'Blog'; $labels->name_admin_bar = 'Blog'; } add_action( 'admin_menu', 'revcon_change_post_label' ); add_action( 'init', 'revcon_change_post_object' );