=== Change Howdy ===
Contributors: pankajanupam
Tags: admin bar, howdy, greeting, white label, admin
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 26.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Replace the "Howdy" greeting in the WordPress admin bar with a welcome message of your own.

== Description ==

WordPress greets every logged-in user with "Howdy" in the top-right corner of the admin bar. It is friendly, but it is not for everyone — it reads oddly to non-American audiences, and it rarely fits a client site you have spent time branding.

Change Howdy replaces that greeting with whatever you want. Set it once under **Settings > Change Howdy** and it applies everywhere the admin bar appears, in the dashboard and on the front end.

= Features =

* Set any greeting text you like from a simple settings screen.
* Position the user's name with a `%s` placeholder — write `Hi %s, good to see you`, or leave the placeholder out to drop the name entirely.
* Applies in the admin *and* on the front-end admin bar.
* Ships in English and Hindi (हिन्दी), and is ready to translate into any other language.
* Works on translated installs, not just English ones.
* No database tables, no scripts, no styles, no tracking, no ads, no upsells.
* Cleans up after itself when you delete it.

= How it works =

The plugin hooks the admin bar's account node directly and rewrites its greeting. It does not filter every translated string on the page, so there is no measurable performance cost.

= Privacy =

Change Howdy collects nothing, stores nothing about your visitors, and makes no external requests. It saves a single option, `change_howdy_greeting`, in your own database.

== Installation ==

= From your dashboard =

1. Go to **Plugins > Add New**.
2. Search for **Change Howdy**.
3. Click **Install Now**, then **Activate**.
4. Go to **Settings > Change Howdy** and enter your greeting.

= Manual installation =

1. Download the plugin ZIP file.
2. Go to **Plugins > Add New > Upload Plugin** and choose the file, or unzip it into `/wp-content/plugins/`.
3. Activate the plugin through the **Plugins** screen.
4. Go to **Settings > Change Howdy** and enter your greeting.

The greeting defaults to "Welcome" until you change it, so the plugin does something useful the moment it is activated.

== Frequently Asked Questions ==

= Where do I change the text? =

**Settings > Change Howdy**, or click the **Settings** link next to Change Howdy on the Plugins screen.

= How does the %s placeholder work? =

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.

= Can I show the greeting without the user's name? =

Yes — leave the `%s` placeholder out of your text and only your text is shown.

= Does it work on the front end? =

Yes. Earlier versions only changed the greeting inside the admin. Since 26.0 the front-end admin bar is covered too.

= Which languages does the plugin come in? =

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.

= Does it work on a translated site? =

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.

= Is it multisite compatible? =

Yes. Each site keeps its own greeting, and deleting the plugin removes the option from every site in the network.

= What happens to my setting if I uninstall? =

Deleting the plugin removes its option from the database. Deactivating leaves it in place, so you can deactivate and reactivate without losing your greeting.

== Screenshots ==

1. The settings screen under Settings > Change Howdy.
2. The admin bar showing a custom greeting in place of "Howdy".

== Changelog ==

= 26.0 =
Major rewrite. The plugin now uses year-based version numbers.

* Added: settings screen under Settings > Change Howdy — the greeting is no longer hardcoded.
* Added: `%s` placeholder support for positioning the user's display name.
* Added: Settings shortcut on the Plugins screen.
* Added: Hindi (hi_IN) translation, and a translation template for every other language.
* Added: uninstall routine, including multisite networks.
* Changed: the default greeting is now translatable, so a translated install greets people in its own language before anything is configured.
* Added: GPL-2.0 license file and full license headers.
* Fixed: the greeting now changes on the front-end admin bar, not only in the admin.
* Fixed: the replacement now works on non-English installs, which it never did before.
* Changed: replaced the site-wide `gettext` filter with a targeted `admin_bar_menu` hook, removing the overhead of filtering every translated string in the admin.
* Changed: translations load on `init` to avoid the `_load_textdomain_just_in_time` notice introduced in WordPress 6.7.
* Changed: code reorganised, documented and brought in line with the WordPress coding standards.
* Tested against WordPress 7.0.

= 2.0 =
* Added compatibility tag.

= 1.0 =
* First release.

== Upgrade Notice ==

= 26.0 =
The greeting is now configurable under Settings > Change Howdy instead of being fixed to "Welcome". Existing installs keep showing "Welcome" until you change it. Also fixes the greeting on the front-end admin bar and on non-English sites.
