Remove admin menu items with accented letters
-
I just upgraded a WordPress website from a 2.something version to the current 4.5.3, and one issue came by that I can’t solve:
I want to remove items from the admin menu. I used the following code on functions.php and it worked well, except for menu items with accented letters:
add_action( 'admin_menu', 'my_remove_menu_pages' ); function my_remove_menu_pages() { remove_menu_page('link-manager.php'); }
If I try to remove page-new.php?type=Consultório for example, it doesn’t do anything. I already tried using the non-accented letter ( o ), the HTML version ( & oacute ; ) and the UTF version ( U+00F3 ) without success.
Do you know what should I do?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Remove admin menu items with accented letters’ is closed to new replies.