• Resolved gleenk

    (@gleenk)


    Hi there, if I set:

    function my_remove_menu_pages() {
    	remove_menu_page('edit.php'); // Posts
    }
    add_action( 'admin_init', 'my_remove_menu_pages' );

    Then I could not correctly upload featured image on my custom post type. Then I could not correctly also add a new term to a taxonomy. It seems that causes some conflict to ajax. It seems absurd, but removing that function (I have to hide default post from menu) everything works.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Is “edit.php” a core file?
    What is the directory that file sits in?
    Does removing it cause a JavaScript error?

    Thread Starter gleenk

    (@gleenk)

    I hope problem was solved, but in WP 3.8.1 I should not add new taxonomy term correctly. If I add a term I had to refresh the page (in the backend) to see it correctly added. Page doesn’t refresh automatically so it seems nothing is working

    Thread Starter gleenk

    (@gleenk)

    I deduced taht it’s only a usability problem, term is added in ajax without evidence or else so my client could not noticed what he is doing

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BUG Removing menu page’ is closed to new replies.