um_admin_user_actions_hook

The Ultimate Member um admin user actions hook function.

Description

um_admin_user_actions_hook( $actions ); 

Parameters (1)

0. $actions
The actions.

Usage

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

Defined (1)

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

/core/um-filters-user.php  
  1. function um_admin_user_actions_hook( $actions ) { 
  2.  
  3. $actions = null; 
  4.  
  5.  
  6. if ( current_user_can('manage_options') ) { 
  7.  
  8. if (um_user'account_status') == 'awaiting_admin_review' ) { 
  9. $actions['um_approve_membership'] = array( 'label' => __('Approve Membership', 'ultimatemember') ); 
  10. $actions['um_reject_membership'] = array( 'label' => __('Reject Membership', 'ultimatemember') ); 
  11.  
  12. if (um_user'account_status') == 'rejected' ) { 
  13. $actions['um_approve_membership'] = array( 'label' => __('Approve Membership', 'ultimatemember') ); 
  14.  
  15. if (um_user'account_status') == 'approved' ) { 
  16. $actions['um_put_as_pending'] = array( 'label' => __('Put as Pending Review', 'ultimatemember') ); 
  17.  
  18. if (um_user'account_status') == 'awaiting_email_confirmation' ) { 
  19. $actions['um_resend_activation'] = array( 'label' => __('Resend Activation E-mail', 'ultimatemember') ); 
  20.  
  21. if ( um_user'account_status') != 'inactive' ) { 
  22. $actions['um_deactivate'] = array( 'label' => __('Deactivate this account', 'ultimatemember') ); 
  23.  
  24. if ( um_user'account_status') == 'inactive' ) { 
  25. $actions['um_reenable'] = array( 'label' => __('Reactivate this account', 'ultimatemember') ); 
  26.  
  27. if ( um_current_user_can( 'delete', um_profile_id() ) ) { 
  28. $actions['um_delete'] = array( 'label' => __('Delete this user', 'ultimatemember') ); 
  29.  
  30.  
  31. if ( current_user_can('delete_users') ) { 
  32. $actions['um_switch_user'] = array( 'label' => __('Login as this user', 'ultimatemember') ); 
  33.  
  34.  
  35.  
  36. return $actions;