| 开发者 | pankajanupam |
|---|---|
| 更新时间 | 2026年8月10日 01:03 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
%s placeholder — write Hi %s, good to see you, or leave the placeholder out to drop the name entirely.change_howdy_greeting, in your own database.
/wp-content/plugins/.Settings > Change Howdy, or click the Settings link next to Change Howdy on the Plugins screen.
Whatever you type is used as-is, with %s swapped for the user's display name. There is only that one rule, so every layout is possible:
Welcome, %s renders as "Welcome, Jane" — this is the default.Hi %s, good to see you renders as "Hi Jane, good to see you".Dashboard renders as "Dashboard", with no name at all.Yes — leave the %s placeholder out of your text and only your text is shown.
Yes. Earlier versions only changed the greeting inside the admin. Since 26.0 the front-end admin bar is covered too.
English and Hindi (हिन्दी). On a Hindi site the settings screen appears in Hindi and the default greeting reads "स्वागत है, {name}" without you changing anything. The plugin is fully translation-ready, so any other language can be added. If you would like to see it in yours, translations are very welcome at https://translate.wordpress.org/projects/wp-plugins/change-howdy/ — there are only nine short strings.
Yes. Earlier versions searched for the literal English word "Howdy" and silently did nothing on non-English installs. Version 26.0 rebuilds the greeting in the active locale, so the replacement works whatever language you run WordPress in.
Yes. Each site keeps its own greeting, and deleting the plugin removes the option from every site in the network.
Deleting the plugin removes its option from the database. Deactivating leaves it in place, so you can deactivate and reactivate without losing your greeting.
%s placeholder support for positioning the user's display name.gettext filter with a targeted admin_bar_menu hook, removing the overhead of filtering every translated string in the admin.init to avoid the _load_textdomain_just_in_time notice introduced in WordPress 6.7.