nf_admin_notices

The Ninja Forms nf admin notices hook.

Description

apply_filters( 'nf_admin_notices', (unknown) $admin_notices ); 

Parameters (1)

0. $admin_notices (unknown)
The admin notices.

Usage

To run the hook, copy the example below.
  1. $admin_notices = apply_filters( 'nf_admin_notices', $admin_notices ); 
  2.  
  3. if ( !empty( $admin_notices ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the nf_admin_notices callback 
  2. function filter_nf_admin_notices( $admin_notices ) { 
  3. // make filter magic happen here... 
  4. return $admin_notices
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'nf_admin_notices', 'filter_nf_admin_notices', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'nf_admin_notices', 'filter_nf_admin_notices', 10, 1 ); 

Defined (2)

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

/ninja-forms.php  
  1. self::$instance->notices->admin_notice( apply_filters( 'nf_admin_notices', $admin_notices ) ); 
/deprecated/ninja-forms.php  
  1. $admin_notices = apply_filters( 'nf_admin_notices', array() );