advantage_meta_date

The Advantage advantage meta date function.

Description

advantage_meta_date( (int) $meta_icon = 0 ); 

Parameters (1)

0. $meta_icon — Optional. (int)
The meta icon.

Usage

  1. if ( !function_exists( 'advantage_meta_date' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The meta icon. 
  5. $meta_icon = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = advantage_meta_date($meta_icon); 
  9.  

Defined (1)

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

/functions.php  
  1. function advantage_meta_date( $meta_icon = 0 ) { 
  2. if ( $meta_icon ) 
  3. echo '<i class="icon-calendar meta-icon"></i>'; 
  4. printf( __( '<time class="entry-date" datetime="%1$s">%2$s</time>', 'advantage' ),  
  5. esc_attr( get_the_date( 'c' ) ),  
  6. esc_html( get_the_date() ) );  
  7.