nf_sub_limit_reached_msg

The Ninja Forms nf sub limit reached msg hook.

Description

apply_filters( 'nf_sub_limit_reached_msg', (unknown) $form_get_setting_sub_limit_msg, (unknown) $form_id ); 

Parameters (2)

0. $form_get_setting_sub_limit_msg (unknown)
The form get setting sub limit msg.
1. $form_id (unknown)
The form id.

Usage

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

Defined (2)

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

/includes/Display/Render.php  
  1. echo do_shortcode( apply_filters( 'nf_sub_limit_reached_msg', $form->get_setting( 'sub_limit_msg' ), $form_id )); 
/deprecated/includes/display/form/sub-limit.php  
  1. $msg = apply_filters( 'nf_sub_limit_reached_msg', $msg, $form_id );