ninja_form

The Ninja Forms ninja form shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[ninja_form]'); 
  1. // variable usage 
  2. $result = do_shortcode('[ninja_form]'); 
  3. echo $result;  

Defined (2)

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

/deprecated/includes/shortcode.php  
  1. return $form; 
  2.  
  3. add_shortcode( ninja_forms, 'ninja_forms_shortcode' ); 
  4. add_shortcode( 'ninja_form', 'ninja_forms_shortcode' ); 
  5. /** 
  6. * Old Ninja Forms shortcode 
  7. */ 
  8.  
/includes/Display/Shortcodes.php  
  1. final class NF_Display_Shortcodes 
  2. public function __construct() 
  3. add_shortcode( 'nf_preview', array( $this, 'display_form_preview' ) ); 
  4. add_shortcode( 'ninja_form', array( $this, 'display_form_front_end' ) ); 
  5. add_shortcode( ninja_forms, array( $this, 'display_form_front_end' ) ); 
  6. add_shortcode( 'ninja_forms_display_form', array( $this, 'display_form_front_end' ) ); 
  7.  
  8. public function display_form_preview( $atts = array() )