nf_delete_notification

Delete a notification.

Description

nf_delete_notification( (int) $n_id ); 

Acts as a wrapper/alias for nf_delete_object

Parameters (1)

0. $n_id (int)
The id.

Usage

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

Defined (1)

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

/deprecated/includes/functions.php  
  1. function nf_delete_notification( $n_id ) { 
  2. nf_delete_object( $n_id );