ninja_forms_sub_date_shortcode

The Ninja Forms ninja forms sub date shortcode function.

Description

ninja_forms_sub_date_shortcode( $atts ); 

Parameters (1)

0. $atts
The atts.

Usage

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

Defined (1)

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

/deprecated/includes/shortcode.php  
  1. function ninja_forms_sub_date_shortcode( $atts ) { 
  2. global $ninja_forms_processing; 
  3. if( isset( $atts['format'] ) ) { 
  4. $date_format = $atts['format']; 
  5. }else{ 
  6. $date_format = 'm/d/Y'; 
  7. $date = date( $date_format ); 
  8. return $date;