jetpack_photon_allow_facebook_graph_domain

The Jetpack by WordPress.com jetpack photon allow facebook graph domain function.

Description

jetpack_photon_allow_facebook_graph_domain( $allow, $domain ); 

Parameters (2)

0. $allow
The allow.
1. $domain
The domain.

Usage

  1. if ( !function_exists( 'jetpack_photon_allow_facebook_graph_domain' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/functions.photon.php'; 
  3.  
  4. // The allow. 
  5. $allow = null; 
  6.  
  7. // The domain. 
  8. $domain = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = jetpack_photon_allow_facebook_graph_domain($allow, $domain); 
  12.  

Defined (1)

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

/functions.photon.php  
  1. function jetpack_photon_allow_facebook_graph_domain( $allow = false, $domain ) { 
  2. switch ( $domain ) { 
  3. case 'graph.facebook.com' : 
  4. return true; 
  5.  
  6. return $allow;