Open Growth Preferred Source Button for Google
Adds Google's Preferred Source integration to WordPress with the standard Google button or a custom site control.
Mit Vorsicht verwenden
Open Growth Preferred Source Bu… works, but test it on a staging site before relying on it in 2026. Was last updated 2 months ago, and scores 60/100 on our health check.
- Getestet mit dem neuesten WordPress (7.1)
- Kleine Benutzerbasis (<10 aktive Installationen)
- Bisher sehr wenige Bewertungen
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where Open Growth Preferred Sourc… stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| google search | >100 |
| news | >100 |
| preferred source | #40 |
| publisher | >100 |
| search | >100 |
About Open Growth Preferred Source Button for…
From the official readme · v1.1.5Beschreibung
Open Growth Preferred Source Button for Google integrates Google’s documented Preferred Sources JavaScript button into WordPress.
Independent plugin, not affiliated with or endorsed by Google.
Features:
* Uses Google’s documented publisher.js integration and declarative button attributes.
* Optional custom-control mode using Google’s documented manual/programmatic integration.
* Custom controls can use a unique CSS selector or the data-ogpsb-preferred-source attribute, including native Bootstrap 5.3 / LiveCanvas markup.
* Automatic placement before, after, or both before and after singular content.
* Selectable public, publicly queryable post types.
* Per-content visibility control in the block editor sidebar.
* Light/dark theme, supported language override, translated language names in the admin UI, and direction-aware alignment.
* Shortcode: [open_growth_preferred_source].
* Dynamic Gutenberg block: open-growth/preferred-source-button.
* Early asset enqueue on pages where a button is expected, with configurable reserved height to reduce layout shift. Set the reserved height to 0 to disable it. The async Google script and layout CSS are loaded early when a placement is predictable; late manual placements receive a footer fallback so they still work and remain styled.
* Protected posts, feeds, embeds, AMP requests, and explicitly hidden content do not render the button.
* No remote calls from PHP.
* Read-only on-demand diagnostics in Settings to explain whether a specific post is configured for automatic or manual display, without contacting Google or changing settings.
Google only supports domain-level and subdomain-level publications in its Preferred Sources tool. Eligibility is controlled by Google, not by this plugin.
Shortcode
[open_growth_preferred_source]
Beispiel:
[open_growth_preferred_source theme="dark" lang="es" alignment="center"]
Allowed values:
* theme: light, dark (case-insensitive).
* lang: a supported Google language code. An explicit lang="" forces automatic browser language.
* alignment: start, center, end. left and right are accepted as aliases.
Invalid values fall back to the corresponding plugin setting.
Externe Dienste
This plugin loads Google’s Preferred Sources JavaScript library from https://news.google.com/swg/js/v1/publisher.js. In standard mode it is loaded on front-end pages where a button is expected to appear. In Custom control mode it is loaded on normal front-end pages because the trigger may live in a theme template, header, builder partial, popup, or dynamically inserted markup that WordPress cannot reliably predict server-side. The browser therefore makes a request to Google when that script loads. Google may receive standard request information such as the visitor’s IP address, browser/user-agent data, referrer information, and other data handled by Google’s service.
The library is required to render and operate Google’s interactive Preferred Source button. No request to Google is made by this plugin’s PHP code.
Service documentation: https://developers.google.com/search/docs/appearance/preferred-sources
Google Terms: https://policies.google.com/terms
Google Privacy Policy: https://policies.google.com/privacy
Installation
- Upload the plugin ZIP in Plugins > Add New > Upload Plugin.
- Activate it.
- Go to Settings > Preferred Source Button.
- Configure placement, content types, theme, language, and alignment.
For a custom site control, choose Custom control. Add data-ogpsb-preferred-source to an existing HTML element or configure a unique CSS selector. In custom-control mode the plugin does not render Google’s standard button.
This release uses its own option and metadata names and does not migrate settings from earlier differently named builds.
Änderungsprotokoll
1.1.5
- Load admin settings JavaScript through WordPress enqueue APIs instead of an inline script tag.
- Sanitize final filterable button markup with an explicit HTML allowlist.
- Remove bundled translations intended for WordPress.org translation infrastructure.
1.1.4
- Fixed Custom control clicks that occur before Google’s async client is ready: configured triggers now suppress their native action immediately and queue one invocation until initialization completes.
- Added an explicit late-style fallback for manual buttons first discovered after
wp_head, so alignment and reserved-height CSS are not silently omitted. - Added early archive/posts-page scanning for stored shortcode, dynamic block, or declarative Google button markup, preserving early CSS/script loading when those manual placements are predictable.
- Restored per-content visibility for shortcode/block placements rendered inside non-singular loops, without treating archive term/user IDs as post IDs.
- Aligned early asset prediction with Diagnostics by recognizing stored
google-add-preferred-source-btnmarkup as a supported manual placement. - Revalidated the minimum supported WordPress version as 6.5.
wp_is_rest_endpoint()was introduced in WordPress 6.5; the 7.0 minimum stated in the 1.0.4/1.0.5 historical notes was unnecessarily restrictive. - Made the unexplained 1.1.2 changelog gap explicit without retroactively inventing release changes.
- Bumped plugin, block metadata, and stable-tag versions consistently to 1.1.4.
- Documented the intentional site-wide frontend asset loading used by Custom control mode for global and dynamically inserted triggers.
- Added filters to disable the dedicated Elementor or Bricks automatic-placement integrations without adding persistent settings.
- Reordered the historical changelog so versions remain in descending order.
- Added browser-native CSS selector syntax validation on the settings screen so invalid Custom control selectors cannot be saved unnoticed.
1.1.3
- Corrected diagnostics for password-protected content so unlocked content is not reported as permanently suppressed, and made explicit that
ogpsb_should_displayis not executed from the admin diagnostic because callbacks may depend on frontend context. - Hardened custom-selector storage and inline JavaScript encoding while preserving legitimate percent-encoded CSS selector sequences.
- Replaced REST-backed
metaediting with a dedicated boolean REST field, so unchecking deletes_ogpsb_hide, the sidebar updates only its own field, and the plugin no longer enables the Custom Fields UI. - Prevented automatic/manual duplicates regardless of whether a shortcode/block or automatic placement renders first.
- Removed the redundant shortcode
lang=""branch without changing automatic-language behavior. - Allowed explicit shortcode and dynamic-block rendering on non-singular front-end views such as archives and the posts page; automatic placement remains singular-only.
- Cleaned packaged PO/POT translator headers.
1.1.2
- Historical note: the 1.1.3 source package contained no 1.1.2 changelog entry. No changes are retroactively attributed to this version.
1.1.1
- Fixed Elementor automatic placement to use the document currently rendered by Elementor, preventing Theme Builder headers, footers, or popups from consuming the singular-content insertion.
- Fixed Custom control settings UI so the Content types row is hidden with the other standard-only placement controls.
- Registered the bundled
/languagesdirectory oninitso packaged translations load reliably in non-WordPress.org installations. - Hardened the language maintenance tool against web execution and allowed
--checkto validate legacy generated lists that predate a recorded source hash. - Restored release packaging hygiene by excluding repository-only
.distignoreandphpcs.xml.dist.
1.1.0
- Added Google’s documented manual/programmatic Preferred Sources integration as an opt-in Custom control mode.
- Added an optional custom CSS trigger selector and the builder-friendly
data-ogpsb-preferred-sourcetrigger attribute. - Added a small native-JavaScript delegated controller so triggers in LiveCanvas, templates, headers, popups, and dynamically inserted markup can invoke the flow without jQuery or Bootstrap coupling.
- Added the required
preferred-sources-control="manual"attribute only in Custom control mode; the existing standard mode remains unchanged. - Updated Gutenberg editor messaging and settings UI so standard-only controls are not presented as applicable in Custom control mode.
- Added custom-mode diagnostics without executing builders or contacting Google.
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best Open Growth Preferred Source… alternatives
All google search plugins →Fragen und Antworten
Open Growth Preferred Source Button…: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is Open Growth Preferred Source Bu… free?
Yes. Open Growth Preferred Source Bu… is free to download and use from the official WordPress.org plugin directory.
Is Open Growth Preferred Source Bu… safe to use in 2026?
Open Growth Preferred Source Bu… works, but test it on a staging site before relying on it in 2026. Was last updated 2 months ago, and scores 60/100 on our health check.
How many websites use Open Growth Preferred Source Bu…?
Open Growth Preferred Source Bu… is active on <10 WordPress websites and has been downloaded 256 times since it launched in October 2026. It was downloaded 126 times in the last 30 days.
Does Open Growth Preferred Source Bu… work with WordPress 7.1?
Yes. The developer has tested Open Growth Preferred Source Bu… up to WordPress 7.1.5, the latest release. It requires WordPress 6.5 or newer.
What PHP version does Open Growth Preferred Source Bu… need?
Open Growth Preferred Source Bu… requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Open Growth Preferred Source Bu… last updated?
The latest version, 1.1.5, was released on October 13, 2026 (2 months ago).
Who makes Open Growth Preferred Source Bu…?
Open Growth Preferred Source Bu… is developed and maintained by jaimepaezv.
What are the best alternatives to Open Growth Preferred Source Bu…?
The most popular alternatives to Open Growth Preferred Source Bu… are The SEO Framework (200K+ installs), Schema (30K+ installs) and WP Google Search (5K+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte
