pnp_is_compound_lname

The Paid Memberships Pro pnp is compound lname function.

Description

pnp_is_compound_lname( $word ); 

Parameters (1)

0. $word
The word.

Usage

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

Defined (1)

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

/includes/lib/name-parser.php  
  1. function pnp_is_compound_lname($word) { 
  2. $word = strtolower($word); 
  3. // these are some common prefixes that identify a compound last names - what am I missing? 
  4. $words = array('vere', 'von', 'van', 'de', 'del', 'della', 'di', 'da', 'pietro', 'vanden', 'du', 'st.', 'st', 'la', 'ter'); 
  5. return array_search($word, $words);