SHARE
TWEET

DJPaul

a guest Aug 24th, 2009 181 Never
  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. ?>
RAW Paste Data
Top