bp_core_admin_remove_buddypress_from_update_transient

Filter callback to remove BuddyPress from the update plugins list.

Description

(object) bp_core_admin_remove_buddypress_from_update_transient( (object) $retval ); 

Attached to the site_transient_update_plugins filter.

Returns (object)

Parameters (1)

0. $retval (object)
Object of plugin update data.

Usage

  1. if ( !function_exists( 'bp_core_admin_remove_buddypress_from_update_transient' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/2.8.php'; 
  3.  
  4. // Object of plugin update data. 
  5. $retval = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_core_admin_remove_buddypress_from_update_transient($retval); 
  9.  

Defined (1)

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

/bp-core/deprecated/2.8.php  
  1. function bp_core_admin_remove_buddypress_from_update_transient( $retval ) { 
  2. $loader = basename( constant( 'BP_PLUGIN_DIR' ) ) . '/bp-loader.php'; 
  3.  
  4. // Remove BP from update plugins list. 
  5. if ( isset( $retval->response[ $loader ] ) ) { 
  6. unset( $retval->response[ $loader ] ); 
  7.  
  8. return $retval;