WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to disable the admin bar for subscribing user ( not the admin).

I found these code snippets here on SE.

However I don't know what file to edit or where to put the code exactly. I have experience with PHP, HTML, etc. Just not so much with the WP (3.4.2).


share|improve this question
up vote 0 down vote accepted

This would go in your theme's functions.php file. This is a small tweak, but things to remember are that:

  • If you ever change your theme, you'll need to remember to copy this over to the new theme
  • It'd be better to put these types of "system tweaks" into your own plugin, which you can read about here

Go with this one

share|improve this answer
Please re-read my answer - This would go in your theme's functions.php file. So - something like /wp-content/themes/YOURTHEME/functions.php at the end, before the closing ?> – Zach Oct 3 '12 at 16:23
Do you have a starter plugin I can use...to use as a repo for these little snippets...online maybe. – user14432 Oct 4 '12 at 20:13
Sure - pastebin.com/hu2hPhDa just save that as something like starter-plugin.php, drop that in the wp-content/plugins directory and then activate it. You'll probably want to modify that header information to something else, but should be fine as-is. Thanks. – Zach Oct 4 '12 at 20:27
All you need is a comment..? Nice... WP makes life easy for starters! Thanks! – user14432 Oct 4 '12 at 20:28
Yes'm :) No problem! – Zach Oct 4 '12 at 20:29

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.