ninja_forms_get_form_by_sub_id

The Ninja Forms ninja forms get form by sub id function.

Description

ninja_forms_get_form_by_sub_id( $sub_id ); 

Parameters (1)

0. $sub_id
The sub id.

Usage

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

Defined (1)

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

/deprecated/includes/database.php  
  1. function ninja_forms_get_form_by_sub_id( $sub_id ) { 
  2. global $wpdb; 
  3. $form_id = Ninja_Forms()->sub( $sub_id )->form_id; 
  4. $form_row = ninja_forms_get_form_by_id( $form_id ); 
  5. return $form_row;