advantage_meta_author

The Advantage advantage meta author function.

Description

advantage_meta_author( (int) $meta_icon = 0 ); 

Parameters (1)

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

Usage

  1. if ( !function_exists( 'advantage_meta_author' ) ) { 
  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_author($meta_icon); 
  9.  

Defined (1)

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

/functions.php  
  1. function advantage_meta_author( $meta_icon = 0 ) { 
  2. printf( '<span class="by-author"><span class="meta-prep">%4$s</span><a class="url fn n" href="%1$s" title="%2$s" rel="author"> %3$s</a></span>',  
  3. esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),  
  4. esc_attr( sprintf( __( 'View all posts by %s', 'advantage' ), get_the_author() ) ),  
  5. get_the_author(),  
  6. $meta_icon ? '<i class="icon-user meta-icon"></i>' : 'By' );