Advertisement
Guest User

Untitled

a guest
Sep 15th, 2015
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. // add function in FUNCTIONS.php
  2. if ( is_page( 'Download' )
  3.  
  4.     } else {
  5.     require_once( get_template_directory() . '/mobile_detect/Mobile_Detect.php');
  6.  
  7. global $detect;
  8. if ( class_exists( 'Mobile_Detect' ) ):
  9.         $detect = new Mobile_Detect;
  10. endif;
  11.  
  12. if( $detect->isiOS() ) {wp_redirect( 'https://itunes.apple.com/au/app/stashd/id714814803?mt=8'); exit(0); };
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement