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