UM_Admin_API

The Ultimate Member UM Admin API class.

Defined (1)

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

/admin/um-admin-init.php  
  1. class UM_Admin_API { 
  2.  
  3. function __construct() { 
  4.  
  5. add_action('admin_init', array(&$this, 'admin_init'), 0); 
  6.  
  7. $_redux_tracker['dev_mode'] = false; 
  8. $_redux_tracker['hash'] = md5( network_site_url() . '-' . $_SERVER['REMOTE_ADDR'] ); 
  9. $_redux_tracker['allow_tracking'] = 'no'; 
  10. update_option('redux-framework-tracking', $_redux_tracker); 
  11.  
  12. if ( !class_exists( 'ReduxFramework' ) && file_exists( um_path . 'admin/core/lib/ReduxFramework/ReduxCore/framework.php' ) ) { 
  13. require_once( um_path . 'admin/core/lib/ReduxFramework/ReduxCore/framework.php' ); 
  14. if ( !isset( $redux_demo ) && file_exists( um_path . 'admin/core/um-admin-redux.php' ) ) { 
  15. require_once( um_path . 'admin/core/um-admin-redux.php' ); 
  16.  
  17. require_once um_path . 'admin/core/um-admin-dashboard.php'; 
  18.  
  19.  
  20. /*** 
  21. *** @Init 
  22. ***/ 
  23. function admin_init() { 
  24.  
  25. global $ultimatemember; 
  26.  
  27. require_once um_path . 'admin/core/um-admin-columns.php'; 
  28. require_once um_path . 'admin/core/um-admin-notices.php'; 
  29. require_once um_path . 'admin/core/um-admin-enqueue.php'; 
  30. require_once um_path . 'admin/core/um-admin-metabox.php'; 
  31. require_once um_path . 'admin/core/um-admin-access.php'; 
  32. require_once um_path . 'admin/core/um-admin-functions.php'; 
  33. require_once um_path . 'admin/core/um-admin-users.php'; 
  34. require_once um_path . 'admin/core/um-admin-roles.php'; 
  35. require_once um_path . 'admin/core/um-admin-builder.php'; 
  36. require_once um_path . 'admin/core/um-admin-dragdrop.php'; 
  37.  
  38. require_once um_path . 'admin/core/um-admin-actions-user.php'; 
  39. require_once um_path . 'admin/core/um-admin-actions-modal.php'; 
  40. require_once um_path . 'admin/core/um-admin-actions-fields.php'; 
  41. require_once um_path . 'admin/core/um-admin-actions-ajax.php'; 
  42. require_once um_path . 'admin/core/um-admin-actions.php'; 
  43.  
  44. require_once um_path . 'admin/core/um-admin-filters-fields.php'; 
  45.  
  46. /** initialize UM administration */ 
  47. $this->columns = new UM_Admin_Columns(); 
  48. $this->styles = new UM_Admin_Enqueue(); 
  49. $this->functions = new UM_Admin_Functions(); 
  50. $this->metabox = new UM_Admin_Metabox(); 
  51. $this->notices = new UM_Admin_Notices(); 
  52. $this->users = new UM_Admin_Users(); 
  53. $this->roles = new UM_Admin_Roles(); 
  54. $this->access = new UM_Admin_Access(); 
  55. $this->builder = new UM_Admin_Builder(); 
  56. $this->dragdrop = new UM_Admin_DragDrop(); 
  57.  
  58. if ( is_admin() &&  
  59. current_user_can('manage_options') &&  
  60. isset($_REQUEST['um_adm_action']) &&  
  61. $_REQUEST['um_adm_action'] != '' 
  62. do_action("um_admin_do_action__", $_REQUEST['um_adm_action'] ); 
  63. do_action("um_admin_do_action__{$_REQUEST['um_adm_action']}", $_REQUEST['um_adm_action'] ); 
  64.  
  65.