Haghs Preferred Source Button for Google
Adds a lightweight, customizable "Add as Preferred Source" button (Google's Preferred Sources feature) to your posts, pages, and custom post types.
Use with caution
Haghs Preferred Source Button f… works, but test it on a staging site before relying on it in 2026. Was last updated 5 months ago, and scores 49/100 on our health check.
- Small user base (<10 active installs)
- Very few reviews so far
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Haghs Preferred Source Butt… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| button | >100 |
| >100 | |
| preferred sources | #57 |
| seo | >100 |
| shortcode | >100 |
About Haghs Preferred Source Button for Google
From the official readme · v1.2.0Description
Haghs Preferred Source Button for Google lets your visitors add your site — or the exact post/page they’re reading — to their Google Preferred Sources with a single click, using Google’s official google.com/preferences/source link format. No API keys, no OAuth, no tracking scripts. Just a fast, simple button.
This plugin is developed independently by Benjamin Hagh Parast and is not affiliated with, endorsed by, or sponsored by Google. “Google” and “Preferred Sources” are referenced only to describe the feature this plugin links to.
Features
- Fully customizable button text
- Choose where the button appears automatically: Header, Footer, Before Content, After Content, Navigation Menu, Floating Left, or Floating Right
- Show the button on any public post type – Posts, Pages, or any custom post type registered by your theme or other plugins – defaults to Posts only, since blog content usually carries the repeat-visit value
- Uses the exact permalink of the post/page being viewed, so visitors prefer the specific content they found, not just your homepage
[hpsbg_button]shortcode for manual placement anywhere, with optionaltextandurloverrides- Open link in a new tab (optional)
- Built-in guidance in the settings screen on Google’s Preferred Sources eligibility requirements, with links to check your own domain and to Google’s official documentation
- Clean uninstall — removes its single settings option, no leftover data
- No external libraries, no database tables, minimal CSS footprint
About Google Preferred Sources
Preferred Sources is a feature from Google that lets people choose the sites they want to see more of in Top Stories, AI Overviews, and other personalized search surfaces. There is no submission or application process — Google determines eligibility automatically by crawling and evaluating a site. Only domain-level or subdomain-level sites are eligible (a subdirectory such as example.com/blog never qualifies on its own), and eligibility is generally tied to publishing fresh, regular content that Google would also consider for Top Stories.
You can check whether your own domain is currently eligible at google.com/preferences/source, and read Google’s own guidance at Google Search Central’s Preferred Sources documentation. This plugin’s settings screen links to both, since the button itself is only useful once your site already qualifies — it cannot make an ineligible site eligible.
Installation
- Upload the plugin files to the
/wp-content/plugins/haghs-preferred-source-button-for-googledirectory, or install the plugin through the WordPress Plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Go to Settings → Preferred Source Button to configure the button text and placement, and to check your Google eligibility.
- Optionally use the
[hpsbg_button]shortcode anywhere you want manual placement.
Changelog
Plugin renamed. If upgrading manually from an older unpublished build, re-check your settings after updating, as the shortcode tag also changed from [add_as_preferred_google] to [hpsbg_button].
1.2.0
- Renamed plugin and slug to avoid trademark/naming confusion
- Prefixed all functions, classes, options, constants, and the shortcode tag with
hpsbg/HPSBGto avoid collisions - Added an eligibility information section to the settings screen, with links to check your domain and to Google’s official documentation
1.1.0
- “Show On” now lists every public post type (not just Posts/Pages), including custom post types
- Default changed to Posts only, since blog content is usually where repeat-visit value lives
1.0.0
- Initial release: customizable button text, placement options, post type targeting, per-post permalink targeting, and shortcode support.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Haghs Preferred Source Button… alternatives
All button plugins →FAQ
Haghs Preferred Source Button for G…: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Haghs Preferred Source Button f… free?
Yes. Haghs Preferred Source Button f… is free to download and use from the official WordPress.org plugin directory.
Is Haghs Preferred Source Button f… safe to use in 2026?
Haghs Preferred Source Button f… works, but test it on a staging site before relying on it in 2026. Was last updated 5 months ago, and scores 49/100 on our health check.
How many websites use Haghs Preferred Source Button f…?
Haghs Preferred Source Button f… is active on <10 WordPress websites and has been downloaded 304 times since it launched in July 2026. It was downloaded 60 times in the last 30 days.
Does Haghs Preferred Source Button f… work with WordPress 7.1?
Haghs Preferred Source Button f… is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Haghs Preferred Source Button f… need?
Haghs Preferred Source Button f… requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Haghs Preferred Source Button f… last updated?
The latest version, 1.2.0, was released on July 16, 2026 (5 months ago).
Who makes Haghs Preferred Source Button f…?
Haghs Preferred Source Button f… is developed and maintained by Benjamin Hagh Parast.
What are the best alternatives to Haghs Preferred Source Button f…?
The most popular alternatives to Haghs Preferred Source Button f… are AddQuicktag (100K+ installs), WP Edit (40K+ installs) and Forget About Shortcode Butt… (20K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card
