um_admin_do_action__user_action

The Ultimate Member um admin do action user function.

Description

um_admin_do_action__user_action( $action ); 

Parameters (1)

0. $action
The action.

Usage

  1. if ( !function_exists( 'um_admin_do_action__user_action' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ultimate-member/admin/core/um-admin-actions.php'; 
  3.  
  4. // The action. 
  5. $action = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = um_admin_do_action__user_action($action); 
  9.  

Defined (1)

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

/admin/core/um-admin-actions.php  
  1. function um_admin_do_action__user_action( $action ) { 
  2. global $ultimatemember; 
  3. if ( !is_admin() || !current_user_can( 'edit_users' ) ) die(); 
  4. if ( !isset( $_REQUEST['sub'] ) ) die(); 
  5. if ( !isset($_REQUEST['user_id']) ) die(); 
  6.  
  7. um_fetch_user( $_REQUEST['user_id'] ); 
  8.  
  9. $subaction = $_REQUEST['sub']; 
  10.  
  11. do_action("um_admin_user_action_hook", $subaction); 
  12. do_action("um_admin_user_action_{$subaction}_hook"); 
  13.  
  14.  
  15. wp_redirect( add_query_arg( 'update', 'user_updated', admin_url('?page=ultimatemember') ) ); 
  16. exit; 
  17.