Retrieve path of author template in current or parent template.

25 related functions found for: get_author_template

Top ↑

Related terms found for this post

wp-parser-related-wordsauthor, authors, get, templat, template, template-php, user, wp-includes
wp-parser-packageTemplate, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • author
  • authors
  • get
  • templat
  • template
  • Template
  • template-php
  • user
  • wp-includes
  • wp-includes/template.php

Top ↑

Description Description

The hierarchy for this template looks like:

  1. author-{nicename}.php
  2. author-{id}.php
  3. author.php

An example of this is:

  1. author-john.php
  2. author-1.php
  3. author.php

The template hierarchy is filterable via the ‘author_template_hierarchy’ hook. The template path is filterable via the ‘author_template’ hook.

Top ↑

Return Return

(string) Full path to author template file.

Top ↑

Source Source

File: wp-includes/template.php


Top ↑

Changelog Changelog

Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.