pmpro_report_login_clear_visit_cookie

The Paid Memberships Pro pmpro report login clear visit cookie function.

Description

pmpro_report_login_clear_visit_cookie(); 

Usage

  1. if ( !function_exists( 'pmpro_report_login_clear_visit_cookie' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/adminpages/reports/login.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = pmpro_report_login_clear_visit_cookie(); 
  7.  

Defined (1)

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

/adminpages/reports/login.php  
  1. function pmpro_report_login_clear_visit_cookie() 
  2. if(isset($_COOKIE['pmpro_visit'])) 
  3. unset($_COOKIE['pmpro_visit']);