sharing_meta_box_protected

The Jetpack by WordPress.com sharing meta box protected function.

Description

sharing_meta_box_protected( $protected, $meta_key, $meta_type ); 

Parameters (3)

0. $protected
The protected.
1. $meta_key
The meta key.
2. $meta_type
The meta type.

Usage

  1. if ( !function_exists( 'sharing_meta_box_protected' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/sharedaddy/sharedaddy.php'; 
  3.  
  4. // The protected. 
  5. $protected = null; 
  6.  
  7. // The meta key. 
  8. $meta_key = null; 
  9.  
  10. // The meta type. 
  11. $meta_type = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = sharing_meta_box_protected($protected, $meta_key, $meta_type); 
  15.  

Defined (1)

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

/modules/sharedaddy/sharedaddy.php  
  1. function sharing_meta_box_protected( $protected, $meta_key, $meta_type ) { 
  2. if ( 'sharing_disabled' == $meta_key ) 
  3. $protected = true; 
  4.  
  5. return $protected;