ninja_forms_display_user_not_logged_in

The Ninja Forms ninja forms display user not logged in hook.

Description

do_action( 'ninja_forms_display_user_not_logged_in', (unknown) $form_id ); 

Parameters (1)

0. $form_id (unknown)
The form id.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'ninja_forms_display_user_not_logged_in', $form_id ); 
The following example is for adding a hook callback.
  1. // define the ninja_forms_display_user_not_logged_in callback 
  2. function action_ninja_forms_display_user_not_logged_in( $form_id ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'ninja_forms_display_user_not_logged_in', 'action_ninja_forms_display_user_not_logged_in', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'ninja_forms_display_user_not_logged_in', 'action_ninja_forms_display_user_not_logged_in', 10, 1 ); 

Defined (2)

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

/includes/Templates/display-form-container.html.php  
  1. <?php if( is_user_logged_in() )do_action( 'ninja_forms_display_user_not_logged_in', $form_id ); ?> 
/deprecated/includes/display/form/display-form.php  
  1. do_action( 'ninja_forms_display_user_not_logged_in', $form_id );