<not_logged_in_msg>

The Ninja Forms not logged in msg shortcode.


Usage

  1. // assign value 
  2. $not_logged_in_msg = 'dynamic_tag'; 
  3.  
  4. // basic usage 
  5. echo do_shortcode("[$not_logged_in_msg]"); 
  1. // assign value 
  2. $not_logged_in_msg = 'dynamic_tag'; 
  3.  
  4. // variable usage 
  5. $result = do_shortcode("[$not_logged_in_msg]"); 
  6. echo $result;  

Defined (1)

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

/deprecated/includes/display/form/not-logged-in.php  
  1. /**/ 
  2. function nf_not_logged_in_msg( $form_id ) { 
  3. $not_logged_in = Ninja_Forms()->form( $form_id )->get_setting( 'logged_in' ); 
  4. if ( ! is_user_logged_in() && 1 == $not_logged_in ) { 
  5. $not_logged_in_msg = Ninja_Forms()->form( $form_id )->get_setting( 'not_logged_in_msg' ); 
  6. echo do_shortcode( $not_logged_in_msg ); 
  7.