ninja_forms_shortcode
The Ninja Forms ninja forms shortcode function.
Description
ninja_forms_shortcode( $atts );
Parameters (1)
- 0. $atts
- The atts.
Usage
if ( !function_exists( 'ninja_forms_shortcode' ) ) { require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/shortcode.php'; } // The atts. $atts = null; // NOTICE! Understand what this does before running. $result = ninja_forms_shortcode($atts);
Defined (1)
The function is defined in the following location(s).
- /deprecated/includes/shortcode.php
- function ninja_forms_shortcode( $atts ) {
- if ( is_admin() && ( !defined( 'DOING_AJAX' ) || !DOING_AJAX ) ) {
- $return = '[ninja_forms_display_form';
- if ( is_array ( $atts ) ) {
- foreach ( $atts as $key => $value ) {
- $return .= ' ' . $key . '=' . $value;
- }
- }
- $return .= ']';
- return $return;
- } else {
- $form = ninja_forms_return_echo( 'ninja_forms_display_form', $atts['id'] );
- return $form;
- }
- }