| 开发者 | needtome |
|---|---|
| 更新时间 | 2026年10月16日 17:29 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
* in the parameter name to match a pattern such as utm_*.
Features:
utm_source, utm_medium, and utm_campaign, or any other query parameter.* wildcards, for example utm_*, and optionally match a specific parameter value.tel: links as well as their visible phone text.utm_source to match one parameter, or utm_* to match any parameter whose name begins with utm_. A rule with a blank parameter value matches whenever the parameter is present; enter a value such as newsletter to require an exact value match. Use a selector that targets the phone text itself, such as .header-phone or .contact-phone a.
The new first-party cookie stores the IDs of matched rules so the same configured number can be shown on later pages. It does not store the visitor's IP address, URL, or phone number. During the transition, the plugin can also read the earlier pdxphone_for_utm cookie until it expires; that legacy cookie contains selectors and replacement numbers and is not written by this plugin. Site owners are responsible for documenting cookies used on their site and determining whether consent is required for their visitors.
Campaign memory can be set to always remember the matching rule (the default), use the selected category from WP Consent API, or read a custom JavaScript consent signal. In consent-based modes, the number still changes on a page whose URL matches a rule. If consent is denied, the plugin clears and stops using campaign cookies; when the visitor opens a later page without the matching URL parameter, the original number remains. If the consent interface is unavailable or has not supplied a state, the plugin does not read or write campaign cookies.
needtome-phone-number-switcher folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen.* in the parameter name to match a pattern such as utm_*; leaving the value blank matches the parameter regardless of its value.https://example.com/contact/?utm_source=newsletter.Yes. Enter any URL query parameter, such as campaign, ref, or gclid. Use * in the parameter name to match a pattern, and leave the parameter value blank to match its presence regardless of value.
Yes. When connected to your cookie banner through the WordPress Consent API or a custom signal, NeedToMe Phone Number Switcher follows the category you select. If the visitor refuses that category or withdraws consent, the plugin deletes and stops using the campaign-memory cookie. The number still changes while a matching campaign URL is open; without that URL on a later page, the original number is shown. The plugin follows your banner's signal; it does not decide whether this cookie legally requires consent or certify GDPR compliance.
Yes, if the banner exposes a JavaScript value or function and emits an event when consent changes. Enter the state path, event name, and path to the consent value in the event details. The value must be true/false or a recognized consent state such as granted/denied.
No. It changes matching text in the visitor's browser. Your saved pages and posts are not modified.
Yes, when the selected element is an anchor whose href starts with tel:. The displayed number and telephone link are then updated together.
It stores the matching rule IDs in a first-party cookie. Set the duration to 0 to keep the choice for the current browser session only, or choose 1 to 365 days.
No. The plugin maps a URL parameter to a phone number that you provide. It does not provision numbers or report calls.
That rule is skipped in the browser. Check the selector in your theme or page builder and use the browser developer console to diagnose selector syntax.
Settings are retained by default. If you enable “Delete plugin settings when the plugin is deleted”, the plugin removes its settings and legacy PDX settings during uninstall.
tel: links, and dynamically inserted page-builder content.