pnp_fix_case

The Paid Memberships Pro pnp fix case function.

Description

pnp_fix_case( $word ); 

Parameters (1)

0. $word
The word.

Usage

  1. if ( !function_exists( 'pnp_fix_case' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/lib/name-parser.php'; 
  3.  
  4. // The word. 
  5. $word = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pnp_fix_case($word); 
  9.  

Defined (1)

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

/includes/lib/name-parser.php  
  1. function pnp_fix_case($word) { 
  2. // uppercase words split by dashes, like "Kimura-Fay" 
  3. $word = pnp_safe_ucfirst("-", $word); 
  4. // uppercase words split by periods, like "J.P." 
  5. $word = pnp_safe_ucfirst(".", $word); 
  6. return $word;