WP Admin Help

Out of context: Reply #7

  • Started
  • Last post
  • 7 Responses
  • acescence0

    well you won't find any admin stuff in your theme, my suggestion to use your theme's functions.php file is because it's an easy place to stash some code that will run whenever your theme is activated. for every process that goes into building a page, wordpress provides "hooks" to let you add your own code. the idea is to hook into the admin head action and filter out the data you don't want to be seen depending on the current user's capabilities. for instance, i use this bit of code to hide the link to dashboard and tools menu for any user that can't edit posts...

    http://pastebin.com/m669338a7

View thread