wppaste
WordPress

twenty_twenty_one_entry_meta_footer(): void

Since
Twenty Twenty-One 1.0
Source
wp-content/themes/twentytwentyone/inc/template-tags.php:66
Prints HTML with meta information for the categories, tags and comments.

Description

Footer entry meta is displayed differently in archives and single posts.

Compatibility

WordPress
since Twenty Twenty-One 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.

Return value

void

Performance profile

How much work a call to twenty_twenty_one_entry_meta_footer() 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
5–104

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

Plugin surface
None

Nothing here hands control to plugin code.

Called by
0

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

What it touches

  • querycontent queryget_post()one call below twenty_twenty_one_entry_meta_footer()
  • optionoption read or writeget_option()one call below twenty_twenty_one_entry_meta_footer()
  • hookthird-party callbacksapply_filters()one call below twenty_twenty_one_entry_meta_footer()

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 · 66 distinct outcomes

One number would be a lie: the work depends on which branch runs. These are every distinct cost twenty_twenty_one_entry_meta_footer() can have, taken from its control-flow graph on PHP 8.5.

WhenInstructionsCalls it makes
always5get_post_type()
is_single() && !has_category() && !has_tag()37get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && !has_tag()43get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && !has_tag()51get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag()
is_single() && has_category()51get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && !is_sticky() && !has_category() && !has_tag()53–55get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag()
is_single() && !has_category() && has_tag()54get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list()
is_single() && has_category() && is_wp_error()55get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category()57get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list()
is_single() && !has_category() && has_tag() && is_wp_error()58get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag()60get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list()
is_single() && has_category()61get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list()
54 further outcomes, up to 104 instructions
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category() && is_wp_error()61get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && is_sticky() && !has_category() && !has_tag()61–63get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag()
is_single() && !has_category() && has_tag()64get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag() && is_wp_error()64get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category()65get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list()
is_single() && has_category() && !is_wp_error()65get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
is_single() && has_category() && is_wp_error()65get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category()67get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && !is_sticky() && has_category()67–69get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag()68get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list()
is_single() && !has_category() && has_tag() && !is_wp_error()68get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
is_single() && !has_category() && has_tag() && is_wp_error()68get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category() && is_wp_error()69get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag()70get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && !is_sticky() && !has_category() && has_tag()70–72get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category() && !is_wp_error()71get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category() && is_wp_error()71get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && !is_sticky() && has_category() && is_wp_error()71–73get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag() && is_wp_error()72get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag() && !is_wp_error()74get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag() && is_wp_error()74get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && !is_sticky() && !has_category() && has_tag() && is_wp_error()74–76get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category()75get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list()
is_single() && has_category() && !is_wp_error()75get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && is_sticky() && has_category()75–77get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && !is_sticky() && has_category()77–79get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag()78get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list()
is_single() && !has_category() && has_tag() && !is_wp_error()78get_post_type(), is_single(), twenty_twenty_one_posted_on(), twenty_twenty_one_posted_by(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && is_sticky() && !has_category() && has_tag()78–80get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category() && !is_wp_error()79get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category() && is_wp_error()79get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && is_sticky() && has_category() && is_wp_error()79–81get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && !is_sticky() && !has_category() && has_tag()80–82get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category() && !is_wp_error()81get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && !is_sticky() && has_category() && !is_wp_error()81–83get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && !is_sticky() && has_category() && is_wp_error()81–83get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag() && !is_wp_error()82get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag() && is_wp_error()82get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && is_sticky() && !has_category() && has_tag() && is_wp_error()82–84get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && !is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag() && !is_wp_error()84get_post_type(), is_single(), is_sticky(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && !is_sticky() && !has_category() && has_tag() && !is_wp_error()84–86get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && !is_sticky() && !has_category() && has_tag() && is_wp_error()84–86get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && is_sticky() && has_category()85–87get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && is_sticky() && !has_category() && has_tag()88–90get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && has_category() && !is_wp_error()89get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && is_sticky() && has_category() && !is_wp_error()89–91get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && is_sticky() && has_category() && is_wp_error()89–91get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && !is_sticky() && has_category() && !is_wp_error()91–93get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && is_sticky() && $post_format !== "aside" && $post_format !== "status" && !has_category() && has_tag() && !is_wp_error()92get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && is_sticky() && !has_category() && has_tag() && !is_wp_error()92–94get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && is_sticky() && !has_category() && has_tag() && is_wp_error()92–94get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error()
!is_single() && !is_sticky() && !has_category() && has_tag() && !is_wp_error()94–96get_post_type(), is_single(), is_sticky(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && is_sticky() && has_category() && !is_wp_error()99–101get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()
!is_single() && is_sticky() && !has_category() && has_tag() && !is_wp_error()102–104get_post_type(), is_single(), is_sticky(), esc_html_x(), get_post_format(), get_permalink(), esc_url(), twenty_twenty_one_continue_reading_text(), twenty_twenty_one_posted_on(), esc_html__(), get_the_title(), sprintf(), edit_post_link(), has_category(), has_tag(), wp_get_list_item_separator(), get_the_category_list(), esc_html__(), printf(), wp_get_list_item_separator(), get_the_tag_list(), is_wp_error(), esc_html__(), printf()

Across PHP versions

Compiles the same on PHP 7.4, 8.1, 8.2, 8.3, 8.4, 8.5 and 8.6-dev: 176 instructions, 5–104 executed per call, 15 branches. The work does not change between versions.

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.

Uses · 19

Show all 19

Source code

	function twenty_twenty_one_entry_meta_footer() { 		// Early exit if not a post.		if ( 'post' !== get_post_type() ) {			return;		} 		// Hide meta information on pages.		if ( ! is_single() ) { 			if ( is_sticky() ) {				echo '<p>' . esc_html_x( 'Featured post', 'Label for sticky posts', 'twentytwentyone' ) . '</p>';			} 			$post_format = get_post_format();			if ( 'aside' === $post_format || 'status' === $post_format ) {				echo '<p><a href="' . esc_url( get_permalink() ) . '">' . twenty_twenty_one_continue_reading_text() . '</a></p>';			} 			// Posted on.			twenty_twenty_one_posted_on(); 			// Edit post link.			edit_post_link(				sprintf(					/* translators: %s: Post title. Only visible to screen readers. */					esc_html__( 'Edit %s', 'twentytwentyone' ),					'<span class="screen-reader-text">' . get_the_title() . '</span>'				),				'<span class="edit-link">',				'</span><br>'			); 			if ( has_category() || has_tag() ) { 				echo '<div class="post-taxonomies">'; 				$categories_list = get_the_category_list( wp_get_list_item_separator() );				if ( $categories_list ) {					printf(						/* translators: %s: List of categories. */						'<span class="cat-links">' . esc_html__( 'Categorized as %s', 'twentytwentyone' ) . ' </span>',						$categories_list					);				} 				$tags_list = get_the_tag_list( '', wp_get_list_item_separator() );				if ( $tags_list && ! is_wp_error( $tags_list ) ) {					printf(						/* translators: %s: List of tags. */						'<span class="tags-links">' . esc_html__( 'Tagged %s', 'twentytwentyone' ) . '</span>',						$tags_list					);				}				echo '</div>';			}		} else { 			echo '<div class="posted-by">';			// Posted on.			twenty_twenty_one_posted_on();			// Posted by.			twenty_twenty_one_posted_by();			// Edit post link.			edit_post_link(				sprintf(					/* translators: %s: Post title. Only visible to screen readers. */					esc_html__( 'Edit %s', 'twentytwentyone' ),					'<span class="screen-reader-text">' . get_the_title() . '</span>'				),				'<span class="edit-link">',				'</span>'			);			echo '</div>'; 			if ( has_category() || has_tag() ) { 				echo '<div class="post-taxonomies">'; 				$categories_list = get_the_category_list( wp_get_list_item_separator() );

Changelog

Introduced in Twenty Twenty-One 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/twentytwentyone/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.