ninja_forms_display_form_title

The Ninja Forms ninja forms display form title function.

Description

ninja_forms_display_form_title( $form_id ); 

Parameters (1)

0. $form_id
The form id.

Usage

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

Defined (1)

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

/deprecated/includes/display/form/form-title.php  
  1. function ninja_forms_display_form_title( $form_id ) { 
  2.  
  3. $show_title = Ninja_Forms()->form( $form_id )->get_setting( 'show_title' ); 
  4. $form_title = Ninja_Forms()->form( $form_id )->get_setting( 'form_title' ); 
  5.  
  6. $title_class = 'ninja-forms-form-title'; 
  7.  
  8. $title_class = apply_filters( 'ninja_forms_form_title_class', $title_class, $form_id ); 
  9.  
  10. $form_title = '<h2 class="' . $title_class . '">'.$form_title.'</h2>'; 
  11.  
  12. $form_title = apply_filters( 'ninja_forms_form_title', $form_title, $form_id ); 
  13. if($show_title == 1) { 
  14. echo $form_title;