membership_amount_<paymentcurrency>

The Membership 2 membership amount paymentcurrency hook.

Description

apply_filters( 'membership_amount_<paymentcurrency>', $number_format ); 

Parameters (1)

0. $number_format
The number format.

Usage

To run the hook, copy the example below.
  1. $number_format = apply_filters( 'membership_amount_{$paymentcurrency}', $number_format ); 
  2.  
  3. if ( !empty( $number_format ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the membership_amount_<paymentcurrency> callback 
  2. function filter_membership_amount_paymentcurrency( $number_format ) { 
  3. // make filter magic happen here... 
  4. return $number_format
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "membership_amount_{$paymentcurrency}", 'filter_membership_amount_paymentcurrency', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "membership_amount_{$paymentcurrency}", 'filter_membership_amount_paymentcurrency', 10, 1 ); 

Defined (18)

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

/app_old/membershipincludes/includes/functions.php  
  1. $pd[$count] = sprintf( __('%s for ', 'membership'), $cur . apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')) ); 
  1. $pd[$count] = sprintf( __('and then %s for ', 'membership'), $cur . apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')) ); 
  1. $pd[$count] = sprintf( __('%s ', 'membership'), $cur . apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')) ); 
  1. $pd[$count] = sprintf( __('and then %s ', 'membership'), $cur . apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')) ); 
  1. $pd[$count] = sprintf( __('%s every ', 'membership'), $cur . apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')) ); 
  1. $pd[$count] = sprintf( __('and then %s every ', 'membership'), $cur . apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')) ); 
/app_old/membershipincludes/gateways/gateway.paypalsolo.php  
  1. $key = md5('MEMBERSHIP' . apply_filters('membership_amount_' . $M_options['paymentcurrency'], $amount)); 
  1. $form .= '<input type="hidden" name="amount" value="' . apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($pricing[$sublevel -1]['amount'], 2, '.' , '')) . '">'; 
/app_old/membershipincludes/gateways/gateway.paypalexpress.php  
  1. $key = md5('MEMBERSHIP' . apply_filters('membership_amount_' . $M_options['paymentcurrency'], $amount)); 
  1. $form .= '<input type="hidden" name="a3" value="' . apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($pricing[0]['amount'], 2)) . '">'; 
  1. $ff['a' . $count] = apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')); 
  1. $ff['a3'] = apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')); 
  1. $ff['a3'] = apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')); 
  1. $ff['a3'] = apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')); 
  1. $form .= '<input type="hidden" name="a3" value="' . apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($pricing[0]['amount'], 2)) . '">'; 
  1. $ff['a' . $count] = apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')); 
  1. $ff['a3'] = apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , '')); 
  1. $ff['a3'] = apply_filters('membership_amount_' . $M_options['paymentcurrency'], number_format($price['amount'], 2, '.' , ''));