ninja_forms_field_shortcode

The Ninja Forms ninja forms field shortcode function.

Description

ninja_forms_field_shortcode( $atts ); 

Parameters (1)

0. $atts
The atts.

Usage

  1. if ( !function_exists( 'ninja_forms_field_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_field_shortcode($atts); 
  9.  

Defined (1)

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

/deprecated/includes/shortcode.php  
  1. function ninja_forms_field_shortcode( $atts ) { 
  2. global $ninja_forms_processing; 
  3. $field_id = $atts['id']; 
  4. if ( is_object ( $ninja_forms_processing ) ) { 
  5. $value = $ninja_forms_processing->get_field_value( $field_id ); 
  6. $value = apply_filters( 'ninja_forms_field_shortcode', $value, $atts ); 
  7. if( is_array( $value ) ) { 
  8. $value = implode( ', ', $value ); 
  9. } else { 
  10. $value = ''; 
  11. return nf_wp_kses_post_deep( $value );