0

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).

Thanks.

0

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

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy