get_ms_invoice_number

The Membership 2 get ms invoice number function.

Description

get_ms_invoice_number(); 

Usage

  1. if ( !function_exists( 'get_ms_invoice_number' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app/template/template-tags.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = get_ms_invoice_number(); 
  7.  

Defined (1)

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

/app/template/template-tags.php  
  1. function get_ms_invoice_number() { 
  2. return sprintf( 
  3. '<a href="%s">%s</a>',  
  4. get_permalink( MS_Helper_Template::$ms_account['invoice']->id ),  
  5. MS_Helper_Template::$ms_account['invoice']->get_invoice_number() 
  6. );