bp_disable_profile_sync

Is profile syncing disabled?.

Description

bp_disable_profile_sync( (bool) $default = false ); 

Parameters (1)

0. $default — Optional. (bool) => false
Fallback value if not found in the database. Default: true.

Usage

  1. if ( !function_exists( 'bp_disable_profile_sync' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-options.php'; 
  3.  
  4. // Optional. Fallback value if not found in the database. 
  5. // Default: true. 
  6. $default = false; 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = bp_disable_profile_sync($default); 
  10.  

Defined (1)

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

/bp-core/bp-core-options.php  
  1. function bp_disable_profile_sync( $default = false ) { 
  2.  
  3. /** 
  4. * Filters whether or not profile syncing is disabled. 
  5. * @since 1.6.0 
  6. * @param bool $value Whether or not syncing is disabled. 
  7. */ 
  8. return (bool) apply_filters( 'bp_disable_profile_sync', (bool) bp_get_option( 'bp-disable-profile-sync', $default ) );