nf_get_notifications_by_form_id

Acts as a wrapper/alias for nf_get_object_children that is specific to notifications.

Description

(array) nf_get_notifications_by_form_id( (string) $form_id, (bool) $full_data = true ); 

Returns (array)

$notifications

Parameters (2)

0. $form_id (string)
The form id.
1. $full_data — Optional. (bool) => true
The full data.

Usage

  1. if ( !function_exists( 'nf_get_notifications_by_form_id' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/functions.php'; 
  3.  
  4. // The form id. 
  5. $form_id = ''; 
  6.  
  7. // The full data. 
  8. $full_data = true; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = nf_get_notifications_by_form_id($form_id, $full_data); 
  12.  

Defined (1)

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

/deprecated/includes/functions.php  
  1. function nf_get_notifications_by_form_id( $form_id, $full_data = true ) { 
  2. return nf_get_object_children( $form_id, 'notification', $full_data );