twentysixteen_entry_meta()
- Since
- Twenty Sixteen 1.0
- Source
wp-content/themes/twentysixteen/inc/template-tags.php:20
Description
Create your own twentysixteen_entry_meta() function to override in a child theme.
Compatibility
- WordPress
- since Twenty Sixteen 1.0
- PHP
- 7.4–8.6-dev
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0), and compiles on PHP 7.4 through 8.6-dev.
Performance profile
How much work a call to twentysixteen_entry_meta() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.
- Cost class
- Heavy
- Scaling
- Constant
- Instructions
- 24–110
- Plugin surface
- 1 hook
- Called by
- 0
Reaches the database via get_post().
No loop in the body: the same number of instructions runs whatever you pass in.
Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 110.
Third-party callbacks on 'twentysixteen_author_avatar_size' run inside this call, and their cost is not bounded by anything here.
Nothing in core calls this; the cost is only what you spend yourself.
What it touches
- hookthird-party callbacks
apply_filters()called directly - querycontent query
get_post()one call below twentysixteen_entry_meta() - optionoption read or write
get_option()one call below twentysixteen_entry_meta()
Further down the call graph this can also reach cache, serialize and transient. Those are the worst case, several calls deep and usually down an error path, not what a normal call pays.
What one call costs · 80 distinct outcomes
One number would be a lie: the work depends on which branch runs. These are every distinct cost twentysixteen_entry_meta() can have, taken from its control-flow graph on PHP 8.5.
| When | Instructions | Calls it makes |
|---|---|---|
!current_theme_supports() && is_singular() | 24 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular() |
!current_theme_supports() && is_singular() | 26 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular() |
!current_theme_supports() && is_singular() | 26 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), is_singular() |
!current_theme_supports() && !is_singular() && post_password_required() | 27 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required() |
!current_theme_supports() && is_singular() | 28 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular() |
!current_theme_supports() && !is_singular() && post_password_required() | 29 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required() |
!current_theme_supports() && !is_singular() && post_password_required() | 29 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required() |
!current_theme_supports() && !is_singular() && post_password_required() | 31 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 33 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 35 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 35 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 37 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
68 further outcomes, up to 110 instructions
!current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 45 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && is_singular() | 47 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular() |
!current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 47 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
!current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 47 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 48 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && is_singular() | 49 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular() |
current_theme_supports() && is_singular() | 49 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular() |
!current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 49 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && post_password_required() | 50 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 50 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 50 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && is_singular() | 51 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular() |
current_theme_supports() && !is_singular() && post_password_required() | 52 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required() |
current_theme_supports() && !is_singular() && post_password_required() | 52 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 52 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && post_password_required() | 54 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 56 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 58 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 58 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
!current_theme_supports() && is_singular() | 59 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 60 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
!current_theme_supports() && is_singular() | 61 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular() |
!current_theme_supports() && is_singular() | 61 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), is_singular() |
!current_theme_supports() && !is_singular() && post_password_required() | 62 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required() |
!current_theme_supports() && is_singular() | 63 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular() |
!current_theme_supports() && !is_singular() && post_password_required() | 64 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required() |
!current_theme_supports() && !is_singular() && post_password_required() | 64 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required() |
!current_theme_supports() && !is_singular() && post_password_required() | 66 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required() |
current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 68 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 68 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 70 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 70 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 70 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 70 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 71 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 72 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 72 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 73 | get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 73 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 75 | get_post_type(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
!current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 80 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && is_singular() | 82 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular() |
!current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 82 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
!current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 82 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 83 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && is_singular() | 84 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular() |
current_theme_supports() && is_singular() | 84 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular() |
!current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 84 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && post_password_required() | 85 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 85 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 85 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && is_singular() | 86 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular() |
current_theme_supports() && !is_singular() && post_password_required() | 87 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required() |
current_theme_supports() && !is_singular() && post_password_required() | 87 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required() |
!current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 87 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && post_password_required() | 89 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 91 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 93 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 93 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && !get_comments_number() | 95 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number() |
current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 103 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 105 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 105 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 106 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && !post_password_required() && comments_open() | 107 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 108 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 108 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
current_theme_supports() && !is_singular() && !post_password_required() && !comments_open() && get_comments_number() | 110 | get_post_type(), apply_filters(), get_the_author_meta(), get_avatar(), _x(), get_the_author_meta(), get_author_posts_url(), esc_url(), get_the_author(), printf(), get_post_type(), twentysixteen_entry_date(), get_post_format(), current_theme_supports(), _x(), get_post_format_link(), esc_url(), get_post_format_string(), printf(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular(), post_password_required(), comments_open(), get_comments_number(), __(), get_the_title(), sprintf(), comments_popup_link() |
Across PHP versions
| PHP | Compiled | Executed | Branches | Notes |
|---|---|---|---|---|
| 8.6-dev | 110 | 24–110 | 8 | |
| 8.5 | 110 | 24–110 | 8 | |
| 8.4 | 110 | 24–110 | 8 | 1 fewer instruction than PHP 8.3 |
| 8.3 | 111 | 24–111 | 8 | |
| 8.2 | 111 | 24–111 | 8 | |
| 8.1 | 111 | 24–111 | 8 | |
| 7.4 | 111 | 24–111 | 8 |
An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.
Hooks and filters fired · 1
One hook fires while twentysixteen_entry_meta() runs, in this order:
- apply_filters( twentysixteen_author_avatar_size )filterline 29 (+9 into the body)
Filters the Twenty Sixteen entry meta avatar size.
Uses · 21
- get_post_type()Retrieves the post type of the current post or of a given post.
- apply_filters()Calls the callback functions that have been added to a filter hook.
- get_avatar()Retrieves the avatar `` tag for a user, email address, MD5 hash, comment, or post.
- get_the_author_meta()Retrieves the requested data of the author of the current post.
- _x()Retrieves translated string with gettext context.
- esc_url()Checks and cleans a URL.
- get_author_posts_url()Retrieves the URL to the author page for the user with the ID provided.
- get_the_author()Retrieves the author of the current post.
- twentysixteen_entry_date()Prints HTML with date information for current post.
- get_post_format()Retrieve the format slug for a post
- current_theme_supports()Checks a theme's support for a given feature.
- get_post_format_link()Returns a link to a post format index.
Show all 21
- get_post_format_string()Returns a pretty, translated version of a post format slug
- twentysixteen_entry_taxonomies()Prints HTML with category and tags for current post.
- is_singular()Determines whether the query is for an existing single post of any post type (post, attachment, page, custom post types).
- post_password_required()Determines whether the post requires password and whether a correct password has been provided.
- comments_open()Determines whether the current post is open for comments.
- get_comments_number()Retrieves the amount of comments a post has.
- comments_popup_link()Displays the link to the comments for the current post ID.
- __()Retrieves the translation of $text.
- get_the_title()Retrieves the post title.
Source code
function twentysixteen_entry_meta() { if ( 'post' === get_post_type() ) { /** * Filters the Twenty Sixteen entry meta avatar size. * * @since Twenty Sixteen 1.0 * * @param int $size The avatar height and width size in pixels. */ $author_avatar_size = apply_filters( 'twentysixteen_author_avatar_size', 49 ); printf( '<span class="byline">%1$s<span class="screen-reader-text">%2$s </span><span class="author vcard"><a class="url fn n" href="%3$s">%4$s</a></span></span>', get_avatar( get_the_author_meta( 'user_email' ), $author_avatar_size ), /* translators: Hidden accessibility text. */ _x( 'Author', 'Used before post author name.', 'twentysixteen' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), get_the_author() ); } if ( in_array( get_post_type(), array( 'post', 'attachment' ), true ) ) { twentysixteen_entry_date(); } $format = get_post_format(); if ( current_theme_supports( 'post-formats', $format ) ) { printf( '<span class="entry-format">%1$s<a href="%2$s">%3$s</a></span>', sprintf( '<span class="screen-reader-text">%s </span>', /* translators: Hidden accessibility text. */ _x( 'Format', 'Used before post format.', 'twentysixteen' ) ), esc_url( get_post_format_link( $format ) ), get_post_format_string( $format ) ); } if ( 'post' === get_post_type() ) { twentysixteen_entry_taxonomies(); } if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo '<span class="comments-link">'; /* translators: %s: Post title. Only visible to screen readers. */ comments_popup_link( sprintf( __( 'Leave a comment<span class="screen-reader-text"> on %s</span>', 'twentysixteen' ), get_the_title() ) ); echo '</span>'; } }Changelog
Introduced in Twenty Sixteen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-content/themes/twentysixteen/inc/template-tags.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.