• Resolved aecorn

    (@aecorn)


    Im trying to clean up the admin-menus for lower-level admins on our page.
    Your plugin seems to be the only one Im having trouble removing. And from your code I cant figure out what the top level admin-menus slug is.
    Please give me a remove_menu_page() function call that will remove your plugins entry in the admin menu.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @aecorn,

    You can use the below sample code to hide our plugin menu from WP admin dashboard. You can alter the code to implement the user role check.

    add_action('admin_menu','wf_cli_remove_admin_menu');
    function wf_cli_remove_admin_menu()
    {
        remove_menu_page('edit.php?post_type=cookielawinfo');
    }

    Let us know if any query.

    Thread Starter aecorn

    (@aecorn)

    Thank you so much for the answer!

    Plugin Author WebToffee

    (@webtoffee)

    Hi @aecorn,

    Leave us a review if you like the plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Correct slug for remove_menu_page’ is closed to new replies.