Opened 9 years ago
Last modified 7 years ago
#38618 new feature request
wp_description() and description-tag
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | 2nd-opinion |
| Focuses: | Cc: |
Description
The wp_title() function is used by the title-tag theme feature to output specific page titles.
Ref https://developer.wordpress.org/reference/functions/wp_title/
What are your thoughts on having something like this for the meta description?
Change History (2)
Note: See
TracTickets for help on using
tickets.
Thanks for this, @henrywright!
In 4.1, the
title-tagtheme support was introduced (see #18548). This feature, if a theme opted in, would eliminate the need to callwp_title(). Instead, WordPress would automatically output the<title>tag usingwp_get_document_title().There was an attempt to deprecate the
wp_title()function [35294] in favor of the more flexiblewp_get_document_title()and this new approach, but this was ultimately reverted (see [35624]).With this in mind, I would not be in favor of a
wp_title()counterpart, but would not be opposed towp_get_document_description()counterpart to standardize the description tag in a similar manner. But, I also don't feel strongly that Core should include this, so going to leave this for a second opinion.