allow_wpcom_domain

The Jetpack by WordPress.com allow wpcom domain function.

Description

allow_wpcom_domain( $domains ); 

Parameters (1)

0. $domains
The domains.

Usage

  1. if ( !function_exists( 'allow_wpcom_domain' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/manage.php'; 
  3.  
  4. // The domains. 
  5. $domains = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = allow_wpcom_domain($domains); 
  9.  

Defined (1)

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

/modules/manage.php  
  1. function allow_wpcom_domain( $domains ) { 
  2. if ( empty( $domains ) ) { 
  3. $domains = array(); 
  4. $domains[] = 'wordpress.com'; 
  5. return array_unique( $domains );