um_admin_do_action__opt_into_tracking

The Ultimate Member um admin do action opt into tracking function.

Description

um_admin_do_action__opt_into_tracking( $action ); 

Parameters (1)

0. $action
The action.

Usage

  1. if ( !function_exists( 'um_admin_do_action__opt_into_tracking' ) ) { 
  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__opt_into_tracking($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__opt_into_tracking( $action ) { 
  2. global $ultimatemember; 
  3. if ( !is_admin() || !current_user_can('manage_options') ) die(); 
  4.  
  5. global $reduxConfig; 
  6. $reduxConfig->ReduxFramework->set('allow_tracking', 1); 
  7.  
  8. update_option('um_tracking_notice', 1 ); 
  9.  
  10. $tracking = new UM_Tracking(); 
  11. $tracking->send_checkin(true); 
  12.  
  13. exit( wp_redirect( remove_query_arg('um_adm_action') ) );