twenty_twenty_one_entry_meta_footer(): void
- Since
- Twenty Twenty-One 1.0
- Source
wp-content/themes/twentytwentyone/inc/template-tags.php:66
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
- Scaling
- Constant
- Instructions
- 5–104
- Plugin surface
- None
- 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 176.
Nothing here hands control to plugin code.
Nothing in core calls this; the cost is only what you spend yourself.
What it touches
- querycontent query
get_post()one call below twenty_twenty_one_entry_meta_footer() - optionoption read or write
get_option()one call below twenty_twenty_one_entry_meta_footer() - hookthird-party callbacks
apply_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.
| When | Instructions | Calls it makes |
|---|---|---|
| always | 5 | get_post_type() |
is_single() && !has_category() && !has_tag() | 37 | get_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() | 43 | get_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() | 51 | get_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() | 51 | get_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–55 | get_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() | 54 | get_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() | 55 | get_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() | 57 | get_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() | 58 | get_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() | 60 | get_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() | 61 | get_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() | 61 | get_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–63 | get_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() | 64 | get_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() | 64 | get_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() | 65 | get_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() | 65 | get_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() | 65 | get_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() | 67 | get_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–69 | get_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() | 68 | get_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() | 68 | get_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() | 68 | get_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() | 69 | get_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() | 70 | get_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–72 | get_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() | 71 | get_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() | 71 | get_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–73 | get_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() | 72 | get_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() | 74 | get_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() | 74 | get_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–76 | get_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() | 75 | get_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() | 75 | get_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–77 | get_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–79 | get_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() | 78 | get_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() | 78 | get_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–80 | get_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() | 79 | get_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() | 79 | get_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–81 | get_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–82 | get_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() | 81 | get_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–83 | get_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–83 | get_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() | 82 | get_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() | 82 | get_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–84 | get_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() | 84 | get_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–86 | get_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–86 | get_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–87 | get_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–90 | get_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() | 89 | get_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–91 | get_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–91 | get_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–93 | get_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() | 92 | get_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–94 | get_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–94 | get_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–96 | get_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–101 | get_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–104 | get_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
- get_post_type()Retrieves the post type of the current post or of a given post.
- is_single()Determines whether the query is for an existing single post.
- is_sticky()Determines whether a post is sticky.
- esc_html_x()Translates string with gettext context, and escapes it for safe use in HTML output.
- get_post_format()Retrieve the format slug for a post
- esc_url()Checks and cleans a URL.
- get_permalink()Retrieves the full permalink for the current post or post ID.
- twenty_twenty_one_continue_reading_text()Creates continue reading text.
- twenty_twenty_one_posted_on()Prints HTML with meta information for the current post-date/time.
- edit_post_link()Displays the edit post link for post.
- esc_html__()Retrieves the translation of $text and escapes it for safe use in HTML output.
- get_the_title()Retrieves the post title.
Show all 19
- has_category()Checks if the current post has any of given category.
- has_tag()Checks if the current post has any of given tags.
- get_the_category_list()Retrieves category list for a post in either HTML list or custom format.
- wp_get_list_item_separator()Retrieves the list item separator based on the locale.
- get_the_tag_list()Retrieves the tags for a post formatted as a string.
- is_wp_error()Checks whether the given variable is a WordPress Error.
- twenty_twenty_one_posted_by()Prints HTML with meta information about theme author.
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.
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.