This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

DJPaul

By: a guest on Aug 24th, 2009  |  syntax: PHP  |  size: 0.25 KB  |  views: 157  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. function peterverkooijen_redirect() {
  3.         if ( !is_site_admin() && strpos( strtolower( $_SERVER['REQUEST_URI'] ), '/wp-admin/' ) !== false ) {
  4.                 bp_core_redirect( site_url() );
  5.         }
  6. }
  7. add_action( 'plugins_loaded', 'peterverkooijen_redirect', 11 );
  8. ?>
clone this paste RAW Paste Data