Advertisement
Guest User

Untitled

a guest
Sep 15th, 2015
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function mobile_redirect(){
  2.  
  3. if ( is_page( 'Download' )
  4.     } else {
  5.     require_once( get_template_directory() . '/mobile_detect/Mobile_Detect.php');
  6. global $detect;
  7. if ( class_exists( 'Mobile_Detect' ) ):
  8.         $detect = new Mobile_Detect;
  9. if( $detect->isiOS() ) {wp_redirect( 'https://itunes.apple.com/au/app/stashd/id714814803?mt=8'); exit(0); };
  10. endif;
  11.     }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement