add_wpcom_to_allowed_redirect_hosts

The Jetpack by WordPress.com add wpcom to allowed redirect hosts function.

Description

add_wpcom_to_allowed_redirect_hosts( $domains ); 

Parameters (1)

0. $domains
The domains.

Usage

  1. if ( !function_exists( 'add_wpcom_to_allowed_redirect_hosts' ) ) { 
  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 = add_wpcom_to_allowed_redirect_hosts($domains); 
  9.  

Defined (1)

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

/modules/manage.php  
  1. function add_wpcom_to_allowed_redirect_hosts( $domains ) { 
  2. if ( Jetpack::is_module_active( 'manage' ) ) {