bpew_extend_update

The BuddyPress Extend Widgets bpew extend update hook.

Description

apply_filters( 'bpew_extend_update', (unknown) $new_instance, (unknown) $old_instance, (unknown) $instance, (unknown) $instance ); 

Parameters (4)

0. $new_instance (unknown)
The new instance.
1. $old_instance (unknown)
The old instance.
2. $instance (unknown)
The instance.
3. $instance (unknown)
The this.

Usage

To run the hook, copy the example below.
  1. $new_instance = apply_filters( 'bpew_extend_update', $new_instance, $old_instance, $instance, $instance ); 
  2.  
  3. if ( !empty( $new_instance ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bpew_extend_update callback 
  2. function filter_bpew_extend_update( $new_instance, $old_instance, $instance, $instance ) { 
  3. // make filter magic happen here... 
  4. return $new_instance
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bpew_extend_update', 'filter_bpew_extend_update', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bpew_extend_update', 'filter_bpew_extend_update', 10, 4 ); 

Defined (1)

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

/bp-extend-widgets.php  
  1. $new_instance = apply_filters('bpew_extend_update', $new_instance, $old_instance, $instance, $this);