How to disable admin bar in WordPress
The WordPress admin bar provides several links such as adding new posts, pages, etc. However, if you want to remove such options, here is the solution for it. Paste the following to the function.php in your child theme. Here we are simply using add_filter to remove the admin bar by returning false.