celalyesil adlı üyeden alıntı: mesajı görüntüle
Bu sınıfı kullanabilirsiniz.

http://mobiledetect.net/

wordpress index.php dosyanıza dahil edin bunu

// Include and instantiate the class.
require_once 'Mobile_Detect.php';
$detect = new Mobile_Detect;

// Any mobile device (phones or tablets).
if ( $detect->isMobile() ) {
BURAYA index.php DOSYASI İÇERİSİNDE YER ALAN KODLAR EKLENECEK
}else{
echo "Bilgisayardan giremezsin!";
}
500 Hatası aldım.
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
şu kodlar php de var.