ninja_forms_shortcode

The Ninja Forms ninja forms shortcode function.

Description

ninja_forms_shortcode( $atts ); 

Parameters (1)

0. $atts
The atts.

Usage

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

Defined (1)

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

/deprecated/includes/shortcode.php  
  1. function ninja_forms_shortcode( $atts ) { 
  2. if ( is_admin() && ( !defined( 'DOING_AJAX' ) || !DOING_AJAX ) ) { 
  3. $return = '[ninja_forms_display_form'; 
  4. if ( is_array ( $atts ) ) { 
  5. foreach ( $atts as $key => $value ) { 
  6. $return .= ' ' . $key . '=' . $value; 
  7. $return .= ']'; 
  8. return $return; 
  9. } else { 
  10. return $form;