Kreativ Font - Kreativ Sound - Kreativ Theme

WordPress Codex: wp_is_mobile()

This Conditional Tag checks if the user is visiting using a mobile device. This is a boolean function, meaning it returns either TRUE or FALSE.

Usage

Parameters
None.

Return values
(bool) - true|false

Examples

<?php
if ( wp_is_mobile() ) {
   /* Display and echo mobile specific stuff here */
} 
?>

Leave a comment

or Subscribe to this comment feed via RSS