check_domainIP

The WooCommerce Checkout Manager check domainIP function.

Description

check_domainIP( $domain ); 

Parameters (1)

0. $domain
The domain.

Usage

  1. if ( !function_exists( 'check_domainIP' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-checkout-manager/includes/pickers/include/ui-1.10.0/ui-lightness/dislawooccm.php'; 
  3.  
  4. // The domain. 
  5. $domain = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = check_domainIP($domain); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/pickers/include/ui-1.10.0/ui-lightness/dislawooccm.php  
  1. function check_domainIP( $domain ) { 
  2. $bits = explode('.', $domain); 
  3.  
  4. if ( count( $bits ) == 4 ) { 
  5. if ( is_numeric($bits[0]) && is_numeric($bits[1]) && is_numeric($bits[2]) && is_numeric($bits[3]) ) { 
  6. return true; 
  7. }  
  8. else { 
  9. return false; 
  10. } else { 
  11. return false; 
  12.