Skip to content
This repository

Adds coauthors_email function to print email addresses #162

Closed
wants to merge 1 commit into from

2 participants

Ben Keith Daniel Bachhuber

Showing 1 unique commit by 1 author.

Jan 24, 2014
Ben Keith benlk Adds coauthors_email function to print email addresses e0dd731
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 18 additions and 0 deletions. Show diff stats Hide diff stats

  1. +18 0 template-tags.php
18 template-tags.php
@@ -320,6 +320,24 @@ function coauthors_links($between = null, $betweenLast = null, $before = null, $
320 320 }
321 321
322 322 /**
  323 + * Outputs the co-authors email addresses
  324 + *
  325 + * @param string $between Delimiter that should appear between the email addresses
  326 + * @param string $betweenLast Delimiter that should appear between the last two email addresses
  327 + * @param string $before What should appear before the presentation of email addresses
  328 + * @param string $after What should appear after the presentation of email addresses
  329 + * @param bool $echo Whether the co-authors should be echoed or returned. Defaults to true.
  330 + */
  331 +function coauthors_email($between = null, $betweenLast = null, $before = null, $after = null, $echo = true ) {
  332 + return coauthors__echo('get_the_author_meta', 'tag', array(
  333 + 'between' => $between,
  334 + 'betweenLast' => $betweenLast,
  335 + 'before' => $before,
  336 + 'after' => $after
  337 + ), 'user_email', $echo );
  338 +}
  339 +
  340 +/**
323 341 * Outputs a single co-author, linked to their website if they've provided one.
324 342 *
325 343 * @param object $author

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.