Created
February 27, 2017 01:06
-
-
Save 5A5K1A/3387a7831305fdc05f4b7ce914636a3a to your computer and use it in GitHub Desktop.
WordPress Rename WP standard 'Berichten' to 'Nieuws'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* rename WP standard 'Berichten' to 'Nieuws' | |
/* ------------------------------------ */ | |
add_action( 'admin_menu', function() { | |
global $menu; | |
global $submenu; | |
$menu[5][0] = 'Nieuws'; | |
$submenu['edit.php'][5][0] = 'Nieuws'; | |
$submenu['edit.php'][10][0] = 'Nieuw nieuws'; | |
$submenu['edit.php'][16][0] = 'Nieuws Tags'; | |
}); | |
add_action( 'init', function() { | |
global $wp_post_types; | |
$labels = &$wp_post_types['post']->labels; | |
$labels->name = 'Nieuws'; | |
$labels->singular_name = 'Nieuws'; | |
$labels->all_items = 'Alle nieuws'; | |
$labels->add_new = 'Nieuws toevoegen'; | |
$labels->add_new_item = 'Nieuws toevoegen'; | |
$labels->edit_item = 'Bewerk nieuws'; | |
$labels->new_item = 'Nieuws'; | |
$labels->view_item = 'Bekijk Nieuws'; | |
$labels->search_items = 'Zoek nieuws'; | |
$labels->not_found = 'Geen nieuws gevonden'; | |
$labels->not_found_in_trash = 'Geen nieuws gevonden gevonden in de prullenbak'; | |
$labels->all_items = 'Alle nieuws'; | |
$labels->menu_name = 'Nieuws'; | |
$labels->name_admin_bar = 'Nieuws'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment