nf_aff_link

The Ninja Forms nf aff link function.

Description

nf_aff_link( $link ); 

Parameters (1)

0. $link
The link.

Usage

  1. if ( !function_exists( 'nf_aff_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/ninja-forms.php'; 
  3.  
  4. // The link. 
  5. $link = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nf_aff_link($link); 
  9.  

Defined (1)

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

/deprecated/ninja-forms.php  
  1. function nf_aff_link( $link ) { 
  2. $u_id = apply_filters( 'ninja_forms_affiliate_id', false ); 
  3. $u_id = get_option( 'nf_aff', $u_id ); 
  4. if ( $u_id ) { 
  5. $link = 'http://www.shareasale.com/r.cfm?u=' . $u_id . '&b=812237&m=63061&afftrack=&urllink=' . urlencode( $link ); 
  6. return $link;