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?
WordPress ...
ما را در سایت WordPress دنبال می کنید
برچسب : نویسنده : استخدام کار wpss بازدید : 240 تاريخ : چهارشنبه 30 تير 1395 ساعت: 8:04