Where is function.php is stored and built? I want to remove menu named as tools from mysite from all user like admin and other user’s?

I Request you please help me out from this problem.Give me the best solution like lay-man to wordpress so that i can understand things quickly.

3 Answers
3

You want to use remove menu page.

<?php
add_action( 'admin_menu', 'wpse26980_remove_tools', 99 );
function wpse26980_remove_tools()
{
    remove_menu_page( 'tools.php' );
}

You can drop that in your functions.php file (without the opening <?php most likely).

That’s not going to prevent people from typing in yoursite.com/wp-admin/tools.php and seeing the tools page, however.

Leave a Reply

Your email address will not be published. Required fields are marked *