ninja_forms_get_all_subs

Ninja_forms_get_all_subs() has been deprecated in favour of Ninja_Forms()->subs()->get();.

Description

ninja_forms_get_all_subs( (string) $form_id = '' ); 

Parameters (1)

0. $form_id — Optional. (string) => ''
The form id.

Usage

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

Defined (1)

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

/deprecated/includes/deprecated.php  
  1. function ninja_forms_get_all_subs( $form_id = '' ) { 
  2. if ( $form_id == '' ) 
  3. return false; 
  4.  
  5. $args = array( 'form_id' => $form_id ); 
  6. return ninja_forms_get_subs( $args );