redirect_user_admin_request

Filters whether to redirect the request to the User Admin in Multisite.

Description

apply_filters( 'redirect_user_admin_request', (bool) $redirect_user_admin_request ); 

Parameters (1)

0. $redirect_user_admin_request (bool)
Whether the request should be redirected.

Usage

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

Defined (1)

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

/wp-admin/user/admin.php  
  1. $redirect_user_admin_request = apply_filters( 'redirect_user_admin_request', $redirect_user_admin_request );