| 开发者 | bisteinoff |
|---|---|
| 更新时间 | 2025年12月8日 23:02 |
| 捐献地址: | 去捐款 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPL2 |
[bisteinoff_phone] - insert the phone number as text[bisteinoff_phone_link] - insert the phone number as clickable link[bisteinoff_phone_href] - insert the href parameter (tel:) for custom implementations
E-mail
[bisteinoff_email] - insert the e-mail as text
[bisteinoff_email_link] - insert the e-mail as clickable mailto link[bisteinoff_email_href] - insert the href parameter (mailto:) for custom implementations
WhatsApp
[bisteinoff_whatsapp] - insert the WhatsApp number as text
[bisteinoff_whatsapp_link] - insert the WhatsApp number as clickable chat link[bisteinoff_whatsapp_href] - insert the href parameter for custom implementations
Telegram
[bisteinoff_telegram] - insert the Telegram username as text with @
[bisteinoff_telegram_link] - insert the Telegram username as clickable link[bisteinoff_telegram_href] - insert the href parameter for custom implementations
Address
[bisteinoff_address] - insert the address as text
[bisteinoff_address_link] - insert the address as link to Google Maps search[bisteinoff_address_href] - insert the href parameter for custom implementations
Multiple Contacts:
For additional contacts of the same type, add the number: [bisteinoff_phone2], [bisteinoff_phone3], etc.[db-phone] - insert the phone number as text[db-phone-link] - insert the phone number as link[db-phone-href] - insert the href parameter of the phone number (tel:)
E-mail
[db-email] - insert the e-mail as text
[db-email-link] - insert the e-mail as link[db-email-href] - insert the e-mail the href parameter of email (mailto:)
WhatsApp
[db-whatsapp] - insert the WhatsApp number as text
[db-whatsapp-link] - insert the WhatsApp number as link[db-whatsapp-href] - insert the href parameter of the WhatsApp number
Telegram
[db-telegram] - insert the Telegram number as text
[db-telegram-link] - insert the Telegram number as link[db-telegram-href] - insert the href parameter of the Telegram number
Address
[db-address] - insert the address as text
[db-address-link] - insert the address as link to Google Maps search[db-address-href] - insert the href parameter of Google Maps search link of the address
Note: Legacy shortcodes will continue to work at least until February 16, 2027, but we recommend updating to the new format./wp-content/plugins/ directoryYou can use shortcodes for phone number, WhatsApp, Telegram, e-mail and address, and insert them where needed. If once you need to change them, they will be changed automatically everywhere, where you had inserted them using the shortcodes.
Yes, you can add as many contacts as you need. For the 2nd contact of the same type and further, a number will be added automatically. For example, [bisteinoff_phone2] or [bisteinoff_phone2_link].
You do not have to worry about the way how the shortcodes are formed. You will find them on the Settings page where you add the contacts.
Yes, you should use the corresponding shortcode with _link suffix. You will easily understand which one. To the right of each shortcode on the settings page you will see an example of how it will appear on your pages.
For regular users: Nothing changes! The plugin will automatically migrate all your settings. All your existing shortcodes continue to work exactly as before. For developers with custom integrations: Version 3.0 introduces a complete code refactoring with modern PHP classes and namespaces. If you have custom code that references this plugin's classes or methods, please review the migration information below.
If you have custom code that integrates with this plugin, please note these changes:
Checking for deprecation notices:
All deprecated elements will trigger _doing_it_wrong() notices when WP_DEBUG is enabled:
define('WP_DEBUG', true);
Recommended shortcode format:
[bisteinoff_phone], [bisteinoff_email_link], [bisteinoff_whatsapp2_href][db-phone], [db-email-link], [db-whatsapp2-href]
Note: We recommend updating to the new format. Legacy shortcodes will continue to work at least until February 16, 2027.db_settings_phone_0, db_settings_email_0, etc.)bisteinoff_plugin_contact_data with structured array
Note: Options are migrated automatically. Old option names are removed from the database after successful migration.DB_WEBSITE_SETTINGS_PLUGIN_VERSION → BISTEINOFF_PLUGIN_CONTACT_VERSION
Note: Old constant remains defined for backward compatibility.DB_SETTINGS_WebsiteSettings → Use \Bisteinoff\Plugin\ContactSettings\Loader instead
New namespace:
\Bisteinoff\Plugin\ContactSettings
Action required:
If you have custom code, update it to use the new naming conventions. All deprecated elements may be removed in further versions after Feb 16th, 2027.
Bisteinoff\Plugin) to prevent conflicts with other plugins[bisteinoff_phone], [bisteinoff_email_link], etc.[db-phone], [db-email-link], etc.)DB_WEBSITE_SETTINGS_PLUGIN_VERSION preserved[db-email-href]Attention! If you have earlier usedmailto:[db-email]you need replace it withmailto:[db-email-href]