wppaste
WordPress

twentysixteen_entry_meta()

Since
Twenty Sixteen 1.0
Source
wp-content/themes/twentysixteen/inc/template-tags.php:20
Prints HTML with meta information for the categories, tags.

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

Reaches the database via get_post().

Scaling
Constant

No loop in the body: the same number of instructions runs whatever you pass in.

Instructions
24–110

Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 110.

Plugin surface
1 hook

Third-party callbacks on 'twentysixteen_author_avatar_size' run inside this call, and their cost is not bounded by anything here.

Called by
0

Nothing in core calls this; the cost is only what you spend yourself.

What it touches

  • hookthird-party callbacksapply_filters()called directly
  • querycontent queryget_post()one call below twentysixteen_entry_meta()
  • optionoption read or writeget_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.

WhenInstructionsCalls it makes
!current_theme_supports() && is_singular()24get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular()
!current_theme_supports() && is_singular()26get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), twentysixteen_entry_taxonomies(), is_singular()
!current_theme_supports() && is_singular()26get_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()27get_post_type(), get_post_type(), get_post_format(), current_theme_supports(), get_post_type(), is_singular(), post_password_required()
!current_theme_supports() && is_singular()28get_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()29get_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()29get_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()31get_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()33get_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()35get_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()35get_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()37get_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()45get_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()47get_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()47get_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()47get_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()48get_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()49get_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()49get_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()49get_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()50get_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()50get_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()50get_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()51get_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()52get_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()52get_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()52get_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()54get_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()56get_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()58get_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()58get_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()59get_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()60get_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()61get_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()61get_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()62get_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()63get_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()64get_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()64get_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()66get_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()68get_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()68get_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()70get_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()70get_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()70get_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()70get_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()71get_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()72get_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()72get_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()73get_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()73get_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()75get_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()80get_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()82get_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()82get_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()82get_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()83get_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()84get_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()84get_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()84get_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()85get_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()85get_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()85get_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()86get_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()87get_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()87get_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()87get_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()89get_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()91get_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()93get_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()93get_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()95get_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()103get_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()105get_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()105get_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()106get_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()107get_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()108get_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()108get_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()110get_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

PHPCompiledExecutedBranchesNotes
8.6-dev11024–1108
8.511024–1108
8.411024–11081 fewer instruction than PHP 8.3
8.311124–1118
8.211124–1118
8.111124–1118
7.411124–1118

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:

  1. apply_filters( twentysixteen_author_avatar_size )filterline 29 (+9 into the body)

    Filters the Twenty Sixteen entry meta avatar size.

Uses · 21

Show all 21

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.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 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.