ninja_forms_form_title

The Ninja Forms ninja forms form title hook.

Description

apply_filters( 'ninja_forms_form_title', (unknown) $form_get_setting_title, (unknown) $form_id ); 

Parameters (2)

0. $form_get_setting_title (unknown)
The form get setting title.
1. $form_id (unknown)
The form id.

Usage

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

Defined (2)

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

/includes/Display/Render.php  
  1. $title = apply_filters( 'ninja_forms_form_title', $form->get_setting( 'title' ), $form_id ); 
/deprecated/includes/display/form/form-title.php  
  1. $form_title = apply_filters( 'ninja_forms_form_title', $form_title, $form_id );