![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/store.cartinsight.co/wp-content/themes/woodmart/inc/modules/ |
<?php use XTS\Metaboxes; if ( ! defined( 'WOODMART_THEME_DIR' ) ) { exit( 'No direct script access allowed' ); } if ( ! function_exists( 'woodmart_wp_is_mobile' ) ) { /** * Filter page content. * * @param boolean $is_mobile Is mobile. * * @return string|void */ function woodmart_wp_is_mobile( $is_mobile ) { if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && strpos( $_SERVER['HTTP_USER_AGENT'], 'iPad' ) ) { // phpcs:ignore $is_mobile = false; } return $is_mobile; } add_filter( 'wp_is_mobile', 'woodmart_wp_is_mobile' ); }