Guest User

Untitled

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