pnp_is_initial

The Paid Memberships Pro pnp is initial function.

Description

pnp_is_initial( $word ); 

Parameters (1)

0. $word
The word.

Usage

  1. if ( !function_exists( 'pnp_is_initial' ) ) { 
  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_is_initial($word); 
  9.  

Defined (1)

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

/includes/lib/name-parser.php  
  1. function pnp_is_initial($word) { 
  2. return ((strlen($word) == 1) || (strlen($word) == 2 && $word{1} == "."));