nf_get_notification_by_id

Acts as a wrapper/alias for nf_get_object_meta.

Description

(array) nf_get_notification_by_id( (string) $notification_id ); 

Returns (array)

$notification

Parameters (1)

0. $notification_id (string)
The notification id.

Usage

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

Defined (1)

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

/deprecated/includes/functions.php  
  1. function nf_get_notification_by_id( $notification_id ) { 
  2. return nf_get_object_meta( $notification_id );