pmpro_is_login_page

The Paid Memberships Pro pmpro is login page function.

Description

pmpro_is_login_page(); 

Usage

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

Defined (1)

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

/includes/functions.php  
  1. function pmpro_is_login_page() { 
  2. return (in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')) || is_page("login"));