um_admin_field_update_error_handling

The Ultimate Member um admin field update error handling hook.

Description

apply_filters( 'um_admin_field_update_error_handling', (unknown) $output_error, (unknown) $array ); 

Parameters (2)

0. $output_error (unknown)
The output error.
1. $array (unknown)
The array.

Usage

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

Defined (1)

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

/admin/core/um-admin-actions-fields.php  
  1. $output['error'] = apply_filters( 'um_admin_field_update_error_handling', $output['error'], $array );