コード例 #1
0
/**
 * Outputs the co-authors IDs
 *
 * @param string $between Delimiter that should appear between the co-authors
 * @param string $betweenLast Delimiter that should appear between the last two co-authors
 * @param string $before What should appear before the presentation of co-authors
 * @param string $after What should appear after the presentation of co-authors
 * @param bool $echo Whether the co-authors should be echoed or returned. Defaults to true.
 */
function coauthors_IDs($between = null, $betweenLast = null, $before = null, $after = null, $echo = true)
{
    return coauthors__echo('ID', 'field', array('between' => $between, 'betweenLast' => $betweenLast, 'before' => $before, 'after' => $after), null, $echo);
}
コード例 #2
0
ファイル: template-tags.php プロジェクト: jayfresh/SweetSpot
function coauthors_IDs($between = null, $betweenLast = null, $before = null, $after = null)
{
    if ($between === NULL) {
        $between = __(COAUTHORS_DEFAULT_BETWEEN, 'co-authors-plus');
    }
    if ($betweenLast === NULL) {
        $betweenLast = __(COAUTHORS_DEFAULT_BETWEEN_LAST, 'co-authors-plus');
    }
    if ($before === NULL) {
        $before = COAUTHORS_DEFAULT_BEFORE;
    }
    if ($after === NULL) {
        $after = COAUTHORS_DEFAULT_AFTER;
    }
    coauthors__echo('the_author_ID', $between, $betweenLast, $before, $after);
}